summary refs log tree commit diff
path: root/emacs.d/custom
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2020-12-02 11:10:24 -0800
committerFranck Cuny <franck.cuny@gmail.com>2020-12-02 11:14:45 -0800
commit8b7704ca47b6e047f80c9461fd7e7e6c51001691 (patch)
tree9973d34c51288c274f363e2b839db6c6f008cd47 /emacs.d/custom
parentemacs: smaller font on macos (diff)
downloademacs.d-8b7704ca47b6e047f80c9461fd7e7e6c51001691.tar.gz
emacs: fix for hl-line
Diffstat (limited to 'emacs.d/custom')
-rw-r--r--emacs.d/custom/fcuny-ui.el7
1 files changed, 5 insertions, 2 deletions
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