ui/indent-guides: don't omit first level of guides

This commit is contained in:
Henrik Lissner 2019-05-29 23:46:18 -04:00
parent a583d69ae1
commit 6dcbaef570
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -7,12 +7,6 @@
:config :config
(add-hook 'focus-in-hook #'highlight-indent-guides-auto-set-faces) (add-hook 'focus-in-hook #'highlight-indent-guides-auto-set-faces)
;; Don't display first level of indentation
(defun +indent-guides-for-all-but-first-column (level responsive display)
(unless (< level 1)
(highlight-indent-guides--highlighter-default level responsive display)))
(setq highlight-indent-guides-highlighter-function #'+indent-guides-for-all-but-first-column)
(defun +indent-guides|disable-maybe () (defun +indent-guides|disable-maybe ()
(when highlight-indent-guides-mode (when highlight-indent-guides-mode
(highlight-indent-guides-mode -1))) (highlight-indent-guides-mode -1)))