doomemacs/modules/ui/indent-guides/config.el

14 lines
553 B
EmacsLisp
Raw Normal View History

;;; ui/indent-guides/config.el -*- lexical-binding: t; -*-
(use-package! highlight-indent-guides
:hook ((prog-mode text-mode conf-mode) . highlight-indent-guides-mode)
:init
(setq highlight-indent-guides-method 'character)
:config
(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
(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)))))