This is second of three big naming convention changes. In this commit, we change the naming conventions for hook functions and variable functions: 1. Replace the bar | to indicate a hook function with a -h suffix, e.g. doom|init-ui -> doom-init-ui-h doom|run-local-var-hooks -> doom-run-local-var-hooks-h 2. And add a -fn suffix for functions meant to be set on variables, e.g. (setq magit-display-buffer-function #'+magit-display-buffer-fn) See ccf327f8 for the reasoning behind these changes.
13 lines
553 B
EmacsLisp
13 lines
553 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)
|
|
:config
|
|
(add-hook 'focus-in-hook #'highlight-indent-guides-auto-set-faces)
|
|
;; `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)))))
|