Don't highlight indent guides on really big buffers

This commit is contained in:
eriedaberrie 2024-10-31 13:41:08 -07:00
parent 9439ad064d
commit ecb3b93ed8

View file

@ -242,11 +242,15 @@
:hook prog-mode sly-mrepl-mode racket-repl-mode) :hook prog-mode sly-mrepl-mode racket-repl-mode)
(use-package highlight-indent-guides (use-package highlight-indent-guides
:hook prog-mode :hook (prog-mode . my-maybe-highlight-indent-guides)
:custom :custom
(highlight-indent-guides-auto-enabled nil) (highlight-indent-guides-auto-enabled nil)
(highlight-indent-guides-method 'character) (highlight-indent-guides-method 'character)
(highlight-indent-guides-responsive 'stack)) :config
(defun my-maybe-highlight-indent-guides ()
(interactive)
(unless (> (count-lines (point-min) (point-max)) 10000)
(highlight-indent-guides-mode))))
(use-package which-key (use-package which-key
:demand t :demand t