ui/treemacs: make hl-line stand out more #846

By remapping it to the region face. Perhaps another face would be a
better fit?
This commit is contained in:
Henrik Lissner 2018-08-28 13:30:51 +02:00
parent d0295a26d4
commit e866fc46aa
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -34,6 +34,11 @@ There are 2 possible values:
(defvar treemacs-collapse-dirs
(if (executable-find "python3") 3 0))
(defun +treemacs|improve-hl-line-contrast ()
"`hl-line' doesn't stand out enough in some themes."
(face-remap-add-relative 'hl-line 'region))
(add-hook 'treemacs-mode-hook #'+treemacs|improve-hl-line-contrast)
(treemacs-follow-mode -1)
(treemacs-filewatch-mode t)
(when (memq +treemacs-use-git-mode '(simple extended))