Add new :ui indent-guides module
Replaces old highlight-indentation-mode with new highlight-indent-guides plugin.
This commit is contained in:
parent
a258995db9
commit
8392c9dcf6
5 changed files with 19 additions and 3 deletions
|
@ -11,7 +11,6 @@
|
|||
;; core-ui.el
|
||||
(package! all-the-icons)
|
||||
(package! hide-mode-line)
|
||||
(package! highlight-indentation)
|
||||
(package! highlight-numbers)
|
||||
(package! highlight-escape-sequences
|
||||
:recipe (:fetcher github :repo "hlissner/highlight-escape-sequences"))
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
evil-goggles ; display visual hints when editing in evil
|
||||
;;fci ; a `fill-column' indicator
|
||||
hl-todo ; highlight TODO/FIXME/NOTE tags
|
||||
indent-guides ; highlighted indent columns
|
||||
modeline ; snazzy, Atom-inspired modeline, plus API
|
||||
nav-flash ; blink the current line after jumping
|
||||
;;neotree ; a project drawer, like NERDTree for vim
|
||||
|
|
|
@ -739,8 +739,7 @@
|
|||
:desc "Flycheck" "f" #'flycheck-mode
|
||||
:desc "Line numbers" "l" #'doom/toggle-line-numbers
|
||||
:desc "Frame fullscreen" "F" #'toggle-frame-fullscreen
|
||||
:desc "Indent guides" "i" #'highlight-indentation-mode
|
||||
:desc "Indent guides (column)" "I" #'highlight-indentation-current-column-mode
|
||||
:desc "Indent guides" "i" #'highlight-indent-guides-mode
|
||||
:desc "Impatient mode" "h" #'+impatient-mode/toggle
|
||||
:desc "Big mode" "b" #'doom-big-font-mode
|
||||
:desc "Evil goggles" "g" #'evil-goggles-mode
|
||||
|
|
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)
|
Loading…
Add table
Add a link
Reference in a new issue