fix Symbol’s value as variable is void: highlight-indent-guides
This commit is contained in:
xhcoding 2019-03-25 10:01:54 +08:00 committed by GitHub
parent 4c6b9d25c1
commit c6daca8e94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,8 +13,8 @@
(setq highlight-indent-guides-highlighter-function #'+indent-guides-for-all-but-first-column)
(defun +indent-guides|disable-maybe ()
(when highlight-indent-guides
(highlight-indent-guides -1)))
(when highlight-indent-guides-mode
(highlight-indent-guides-mode -1)))
;; `highlight-indent-guides' breaks in `visual-line-mode'
(add-hook 'visual-line-mode-hook #'+indent-guides|disable-maybe)
(add-hook 'org-indent-mode-hook #'+indent-guides|disable-maybe))