From 8b7704ca47b6e047f80c9461fd7e7e6c51001691 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 2 Dec 2020 11:10:24 -0800 Subject: emacs: fix for hl-line --- emacs.d/custom/fcuny-ui.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'emacs.d/custom') diff --git a/emacs.d/custom/fcuny-ui.el b/emacs.d/custom/fcuny-ui.el index 6f1e913..a59d29b 100644 --- a/emacs.d/custom/fcuny-ui.el +++ b/emacs.d/custom/fcuny-ui.el @@ -34,9 +34,12 @@ (set-frame-font "Source Code Pro-11"))) (use-package hl-line - :hook ((prog-mode puppet-mode dired-mode org-mode markdown-mode conf-mode yaml-mode) . hl-line-mode) + :hook ((prog-mode text-mode conf-mode special-mode) . hl-line-mode) :custom - (hl-line-sticky-flag nil)) + ;; 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. + (hl-line-sticky-flag nil) + (global-hl-line-sticky-flag nil)) (use-package uniquify :defer 5 -- cgit 1.4.1