Merge pull request #1282 from xhcoding/develop

fix +indent-guides|disable-maybe
This commit is contained in:
Henrik Lissner 2019-03-26 03:44:24 -04:00 committed by GitHub
commit f27da5e305
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))