Restore hl-line-sticky-flag defaults
There are some modes that expect he highlight to be visible across windows (like treemacs or mu4e). The performance benefit is negligible anyhow.
This commit is contained in:
parent
cebbd76f3d
commit
33e7f081a7
1 changed files with 0 additions and 5 deletions
|
@ -422,11 +422,6 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
||||||
((apply #'derived-mode-p global-hl-line-modes)))
|
((apply #'derived-mode-p global-hl-line-modes)))
|
||||||
(hl-line-mode +1))))
|
(hl-line-mode +1))))
|
||||||
|
|
||||||
;; Not having to render the hl-line overlay in multiple buffers offers a tiny
|
|
||||||
;; performance boost. I also don't need to see it in other buffers.
|
|
||||||
(setq hl-line-sticky-flag nil
|
|
||||||
global-hl-line-sticky-flag nil)
|
|
||||||
|
|
||||||
;; Temporarily disable `hl-line' when selection is active, since it doesn't
|
;; Temporarily disable `hl-line' when selection is active, since it doesn't
|
||||||
;; serve much purpose when the selection is so much more visible.
|
;; serve much purpose when the selection is so much more visible.
|
||||||
(defvar doom--hl-line-mode nil)
|
(defvar doom--hl-line-mode nil)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue