From a6eaedbbdc972d4eff14f6e2778feb1e06661801 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 12 Mar 2020 17:10:28 -0700 Subject: [emacs] hl-line mode configuration Do not enable it for everything (for example I don't want it in the various shells). I also want to make sure the stickiness is not enabled (I don't want to see two lines highlighted if I've two frames open). --- emacs.d/custom/fcuny-ui.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'emacs.d/custom') diff --git a/emacs.d/custom/fcuny-ui.el b/emacs.d/custom/fcuny-ui.el index 9a96bb0..a194d1e 100644 --- a/emacs.d/custom/fcuny-ui.el +++ b/emacs.d/custom/fcuny-ui.el @@ -37,9 +37,9 @@ (display-time-mode t))) (use-package hl-line - :config - (set-face-background 'hl-line "#E0EBF5") - (global-hl-line-mode t)) + :hook ((prog-mode puppet-mode dired-mode org-mode markdown-mode) . hl-line-mode) + :custom + (hl-line-sticky-flag nil)) (use-package uniquify :defer 5 -- cgit 1.4.1