Emacs: Use darker hl-line for treemacs (more contrast).
This commit is contained in:
parent
f169cb5c7a
commit
39f23fd45e
|
@ -1,6 +1,6 @@
|
|||
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-04-17T03:22:05+0200>
|
||||
;; Time-stamp: <2020-04-21T04:20:50+0200>
|
||||
|
||||
;;; Commentary:
|
||||
;; * treemacs
|
||||
|
@ -17,12 +17,21 @@
|
|||
:after (display-line-numbers)
|
||||
:custom ((treemacs-project-follow-cleanup t) ; Collapse projects when leaving.
|
||||
(treemacs-silent-refresh t)) ; No log message on refresh.
|
||||
:config (progn
|
||||
(make-face 'hl-line-treemacs-face)
|
||||
(set-face-attribute 'hl-line-treemacs-face nil
|
||||
:background "#080011"
|
||||
:extend t)
|
||||
(defun my/treemacs-set-hl-line ()
|
||||
(set (make-local-variable 'hl-line-face)
|
||||
'hl-line-treemacs-face)))
|
||||
:bind (("<f9>" . treemacs-select-window) ; Focus treemacs.
|
||||
("C-<f9>" . treemacs) ; Toggle treemacs.
|
||||
("M-<f9>" . treemacs-add-and-display-current-project)
|
||||
(:map treemacs-mode-map
|
||||
("<mouse-1>" . treemacs-single-click-expand-action)))
|
||||
:hook (treemacs-mode . my/disable-line-numbers))
|
||||
:hook ((treemacs-mode . my/disable-line-numbers)
|
||||
(treemacs-mode . my/treemacs-set-hl-line)))
|
||||
|
||||
(use-package treemacs-projectile
|
||||
:after (treemacs projectile))
|
||||
|
|
Loading…
Reference in New Issue
Block a user