aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesus E <heckyel@riseup.net>2023-07-03 13:34:09 -0400
committerJesus E <heckyel@riseup.net>2023-07-03 13:34:09 -0400
commit533ea6953fa034c9752f8e73a4220747ef7bb255 (patch)
treefdcb5a2e936718dddde1daa8d75809e730da2ab6
parent821b54fe2a33ca01b6b24e1485f6a2b638829c48 (diff)
downloademacs-personal-533ea6953fa034c9752f8e73a4220747ef7bb255.tar.lz
emacs-personal-533ea6953fa034c9752f8e73a4220747ef7bb255.tar.xz
emacs-personal-533ea6953fa034c9752f8e73a4220747ef7bb255.zip
Relax line guidesHEADmaster
-rw-r--r--modules/init-indent-guides.el18
1 files changed, 16 insertions, 2 deletions
diff --git a/modules/init-indent-guides.el b/modules/init-indent-guides.el
index 660b64a..8c41f85 100644
--- a/modules/init-indent-guides.el
+++ b/modules/init-indent-guides.el
@@ -10,8 +10,22 @@
:ensure t
:config
(setq highlight-indent-guides-method 'character)
- :hook
- (prog-mode . highlight-indent-guides-mode))
+ (setq highlight-indent-guides-responsive 'top)
+ (setq highlight-indent-guides-delay 0.3)
+ (setq highlight-indent-guides-character ?\|)
+ (setq highlight-indent-guides-auto-odd-face-perc 15)
+ (setq highlight-indent-guides-auto-even-face-perc 20)
+ (setq highlight-indent-guides-auto-character-face-perc 30)
+ (set-face-attribute 'highlight-indent-guides-character-face nil
+ :background "rgba(136, 136, 136, 0.1)"))
+
+(defun general-toggle-highlight-indent-guides ()
+ (interactive)
+ (if (bound-and-true-p highlight-indent-guides-mode)
+ (highlight-indent-guides-mode -1)
+ (highlight-indent-guides-mode 1)))
+
+(global-set-key (kbd "<f7>") 'general-toggle-highlight-indent-guides)
(provide 'init-indent-guides)