Fix 'void-variable: org-indent-mode' error

This commit is contained in:
Henrik Lissner 2020-07-31 02:45:57 -04:00
parent f82775fead
commit 4c1ad04e7f
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -21,5 +21,6 @@
;; `highlight-indent-guides' breaks when `org-indent-mode' is active
(add-hook! 'org-mode-local-vars-hook
(defun +indent-guides-disable-maybe-h ()
(when (and highlight-indent-guides-mode org-indent-mode)
(highlight-indent-guides-mode -1)))))
(and highlight-indent-guides-mode
(bound-and-true-p org-indent-mode)
(highlight-indent-guides-mode -1)))))