mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add new :ui indent-guides module
Replaces old highlight-indentation-mode with new highlight-indent-guides plugin.
This commit is contained in:
13
modules/ui/indent-guides/config.el
Normal file
13
modules/ui/indent-guides/config.el
Normal file
@ -0,0 +1,13 @@
|
||||
;;; ui/indent-guides/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(def-package! highlight-indent-guides
|
||||
:hook ((prog-mode text-mode conf-mode) . highlight-indent-guides-mode)
|
||||
:config
|
||||
(setq highlight-indent-guides-method 'character
|
||||
highlight-indent-guides-responsive 'top)
|
||||
|
||||
;; 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))
|
4
modules/ui/indent-guides/packages.el
Normal file
4
modules/ui/indent-guides/packages.el
Normal file
@ -0,0 +1,4 @@
|
||||
;; -*- no-byte-compile: t; -*-
|
||||
;;; ui/indent-guides/packages.el
|
||||
|
||||
(package! highlight-indent-guides)
|
Reference in New Issue
Block a user