doomemacs/modules/ui/indent-guides/config.el
Henrik Lissner c5c3bdaa61
ui/indent-guides: set variables sooner
So you don't need after! to change them.
2019-03-11 16:46:55 -04:00

13 lines
611 B
EmacsLisp

;;; ui/indent-guides/config.el -*- lexical-binding: t; -*-
(def-package! highlight-indent-guides
:hook ((prog-mode text-mode conf-mode) . highlight-indent-guides-mode)
:init
(setq highlight-indent-guides-method 'character
highlight-indent-guides-responsive 'top)
:config
;; Don't display first level of indentation
(defun +indent-guides-for-all-but-first-column (level responsive display)
(unless (< level 1)
(highlight-indent-guides--highlighter-default level responsive display)))
(setq highlight-indent-guides-highlighter-function #'+indent-guides-for-all-but-first-column))