From d06b903d3b6f3a0ffa530ce1ccab1662c053a893 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sun, 10 Apr 2022 22:09:25 +0200 Subject: [PATCH] Correctly disable hl-line --- config.el | 7 +++++++ packages.el | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config.el b/config.el index ee34c4c..5f93577 100644 --- a/config.el +++ b/config.el @@ -39,6 +39,10 @@ (set-face-attribute 'font-lock-function-name-face nil :weight 'bold) (set-face-attribute 'font-lock-keyword-face nil :weight 'bold) (set-face-attribute 'font-lock-type-face nil :weight 'bold) + (set-face-attribute 'line-number-current-line nil :inherit + (remq 'hl-line (internal-get-lisp-face-attribute + 'line-number-current-line + :inherit))) (set-face-attribute 'show-paren-match nil :background nil))) (after! whitespace (set-face-attribute 'whitespace-line nil :background nil)) @@ -112,6 +116,9 @@ ;; Additional coniguration for doom modules. ;; ----------------------------------------------------------------------------- +;; Disable hl-line-mode everywhere. +(after! hl-line (setq global-hl-line-modes nil)) + ;; Always open magit in other window. (after! magit (setq magit-display-buffer-function #'magit-display-buffer-traditional)) diff --git a/packages.el b/packages.el index 99d7cef..34bc92f 100644 --- a/packages.el +++ b/packages.el @@ -31,7 +31,6 @@ ;; If you'd like to disable a package included with Doom, you can do so here ;; with the `:disable' property: ;(package! builtin-package :disable t) -(package! hl-line :disable t) ;; You can override the recipe of a built in package without having to specify ;; all the properties for `:recipe'. These will inherit the rest of its recipe