[Emacs] Require highlight-indent-guides before tweaking its faces

This commit is contained in:
Ivan Malison 2016-12-30 12:51:01 -08:00
parent 66dd405041
commit 7babc82846
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1672,7 +1672,9 @@ https://github.com/alpaker/Fill-Column-Indicator/issues/21 for more details
;; the time of load-theme ;; the time of load-theme
(defun imalison:set-highlight-indent-guides-faces-load-theme (&rest args) (defun imalison:set-highlight-indent-guides-faces-load-theme (&rest args)
(if (face-background 'default) (if (face-background 'default)
(imalison:set-highlight-indent-guides-faces) (progn
(require 'highlight-indent-guides)
(imalison:set-highlight-indent-guides-faces))
(run-at-time "1 sec" nil 'imalison:set-highlight-indent-guides-faces-load-theme))) (run-at-time "1 sec" nil 'imalison:set-highlight-indent-guides-faces-load-theme)))
(advice-add 'load-theme (advice-add 'load-theme