feat(projects/treemacs): customize highlight line background color

This commit is contained in:
2021-10-22 11:28:53 +01:00
parent c52853e832
commit cccff7190a
2 changed files with 22 additions and 0 deletions

View File

@@ -11,6 +11,9 @@
("C-x C-p" . treemacs)
("C-x p" . treemacs-select-window)
:hook
(treemacs-mode . siren-treemacs-change-hl-line-mode)
:custom
(treemacs-collapse-dirs 3)
(treemacs-follow-after-init t)
@@ -26,6 +29,21 @@
(treemacs-last-error-persist-file
(expand-file-name "treemacs-persist-at-last-error" siren-cache-dir))
:init
(defgroup siren-treemacs nil
"Siren specific settings for treemacs."
:group 'treemacs)
(defface siren-treemacs-line-highlight '((t (:extend t)))
"Custom line-highlight face for treemacs."
:group 'siren-treemacs)
(defun siren-treemacs-change-hl-line-mode ()
"Use a custom face to control style of highlighted line."
(setq-local hl-line-face 'siren-treemacs-line-highlight)
(overlay-put hl-line-overlay 'face hl-line-face)
(treemacs--setup-icon-background-colors))
:config
(defvar treemacs-no-load-time-warnings t)

View File

@@ -102,6 +102,10 @@
`(diredp-deletion-file-name ((t ( :foreground ,(doom-color 'red) ))))
`(diredp-compressed-file-name ((t ( :foreground ,(doom-color 'blue) ))))
;; treemacs
`(siren-treemacs-line-highlight ((t ( :background ,(doom-blend 'violet 'bg 0.2)
:extend t ))))
;; selectrum
`(selectrum-current-candidate ((t ( :background ,(doom-blend 'violet 'bg 0.2)
:foreground ,(doom-blend 'violet 'fg 0.3)