mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
feat(projects/treemacs): customize highlight line background color
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user