Don't highlight indent guides on really big buffers
This commit is contained in:
parent
9439ad064d
commit
ecb3b93ed8
8
init.el
8
init.el
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue