From 629baa89b32ead59b052f6f3a692465e03e257b3 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Mon, 18 Nov 2024 11:30:11 +0700 Subject: [PATCH] Add indent guides --- init.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/init.el b/init.el index a00bd93..5c520a8 100644 --- a/init.el +++ b/init.el @@ -25,6 +25,16 @@ (global-set-key (kbd "C-c ") '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.