From dd1f7713ea15ba129016d4b07c6e31188c661b53 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 30 May 2021 03:22:40 -0400 Subject: [PATCH] Fix 'invalid face attribute :background' warnings And 'invalid face attribute nil' warnings too. --- modules/ui/doom-dashboard/config.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ui/doom-dashboard/config.el b/modules/ui/doom-dashboard/config.el index ae7884615..32ea06b74 100644 --- a/modules/ui/doom-dashboard/config.el +++ b/modules/ui/doom-dashboard/config.el @@ -192,8 +192,9 @@ PLIST can have the following properties: finally do (setq-local fringe-indicator-alist alist)) ;; Ensure point is always on a button (add-hook 'post-command-hook #'+doom-dashboard-reposition-point-h nil 'local) - ;; Never show hl-line, because the margin cut-off looks ugly! - (face-remap-add-relative 'hl-line '(:background nil))) + ;; hl-line produces an ugly cut-off line highlight in the dashboard, so don't + ;; activate it there (by pretending it's already active). + (setq-local hl-line-mode t)) (define-key! +doom-dashboard-mode-map [left-margin mouse-1] #'ignore