2019-03-11 12:39:38 -04:00
|
|
|
;;; ui/indent-guides/config.el -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
(def-package! highlight-indent-guides
|
|
|
|
:hook ((prog-mode text-mode conf-mode) . highlight-indent-guides-mode)
|
2019-03-11 16:46:55 -04:00
|
|
|
:init
|
2019-05-10 02:02:43 -04:00
|
|
|
(setq highlight-indent-guides-method 'character)
|
2019-03-11 16:46:55 -04:00
|
|
|
:config
|
2019-05-19 01:52:52 -04:00
|
|
|
(add-hook 'focus-in-hook #'highlight-indent-guides-auto-set-faces)
|
2019-05-13 14:37:00 -04:00
|
|
|
;; `highlight-indent-guides' breaks in these modes
|
2019-07-18 15:27:20 +02:00
|
|
|
(add-hook! '(visual-line-mode-hook org-indent-mode-hook)
|
|
|
|
(defun +indent-guides-disable-maybe-h ()
|
|
|
|
(when highlight-indent-guides-mode
|
|
|
|
(highlight-indent-guides-mode -1)))))
|