Skip to content

Commit

Permalink
feat(emacs): add #'gg/global-indent-bars-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
gekoke committed Dec 9, 2024
1 parent 52798dc commit 90441ef
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion modules/nixos/programs/emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,16 @@

(use-package indent-bars
:ensure nil
:init
(define-global-minor-mode gg/global-indent-bars-mode indent-bars-mode
(lambda ()
(when (and (not (derived-mode-p 'emacs-lisp-mode))
(derived-mode-p
'prog-mode
'yaml-mode
'markdown-mode))
(indent-bars-mode))))
(gg/global-indent-bars-mode)
:config
(require 'indent-bars-ts)
:custom
Expand All @@ -175,7 +185,10 @@

(indent-bars-display-on-blank-lines t)
(indent-bars-starting-column 0)
(indent-bars-treesit-support t))
(indent-bars-treesit-support t)
:general
(gg/leader
"e i" #'gg/global-indent-bars-mode))

(use-package jinx
:ensure t
Expand Down

0 comments on commit 90441ef

Please sign in to comment.