Add indent guides

This commit is contained in:
Dita Aji Pratama 2024-11-18 11:30:11 +07:00
parent 4392ad0a18
commit 629baa89b3

10
init.el
View File

@ -25,6 +25,16 @@
(global-set-key (kbd "C-c <up>") 'mc/mark-previous-like-this)
)
(use-package highlight-indent-guides
:ensure t
:hook ((prog-mode . highlight-indent-guides-mode) ; Enable in programming modes
(treemacs-mode . (lambda () (highlight-indent-guides-mode -1)))) ; Disable in Treemacs
:config
(setq highlight-indent-guides-method 'character) ; Choose method: 'character', 'fill', or 'column'
(setq highlight-indent-guides-auto-enabled t)
(setq highlight-indent-guides-responsive 'top)
(setq highlight-indent-guides-character ?\|)) ; Character to display as indent guide
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.