Relax line guides

This commit is contained in:
Jesus E 2023-07-03 13:34:09 -04:00
parent 821b54fe2a
commit 533ea6953f
No known key found for this signature in database
GPG Key ID: E607CE7149F4D71C

View File

@ -10,8 +10,22 @@
:ensure t :ensure t
:config :config
(setq highlight-indent-guides-method 'character) (setq highlight-indent-guides-method 'character)
:hook (setq highlight-indent-guides-responsive 'top)
(prog-mode . highlight-indent-guides-mode)) (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) (provide 'init-indent-guides)