Add new face: doom-modeline-buffer-minor-mode.

See https://github.com/seagle0128/doom-modeline/issues/59#issuecomment-444514463.
This commit is contained in:
Vincent Zhang 2018-12-06 02:12:17 +08:00
parent 9c6d00d3ab
commit 4235da6465

View file

@ -190,6 +190,7 @@ It returns a file name which can be used directly as argument of
(declare-function persp-contain-buffer-p 'persp-mode)
(declare-function persp-add-buffer 'persp-mode)
(declare-function persp-remove-buffer 'persp-mode)
(declare-function persp-switch 'persp-mode)
(declare-function project-current 'project)
(declare-function project-roots 'project)
(declare-function projectile-project-root 'projectile)
@ -229,6 +230,10 @@ It returns a file name which can be used directly as argument of
'((t (:inherit (mode-line-emphasis bold))))
"Face used for the major-mode segment in the mode-line.")
(defface doom-modeline-buffer-minor-mode
'((t (:inherit (mode-line-buffer-id bold))))
"Face used for the minor-modes segment in the mode-line.")
(defface doom-modeline-project-root-dir
'((t (:inherit (mode-line-emphasis bold))))
"Face used for the project part of the mode-line buffer path.")
@ -880,6 +885,9 @@ mouse-3: Toggle minor modes"
(doom-modeline-def-segment minor-modes
(when doom-modeline-minor-modes
(propertize
(concat " "
(format-mode-line
`((:propertize ("" minor-mode-alist)
mouse-face mode-line-highlight
help-echo "Minor mode\n\
@ -891,8 +899,9 @@ mouse-3: Toggle minor modes"
mouse-face mode-line-highlight
help-echo "mouse-2: Remove narrowing from buffer"
local-map ,(make-mode-line-mouse-map
'mouse-2 #'mode-line-widen))
" ")))
'mouse-2 #'mode-line-widen))))
" ")
'face (if (doom-modeline--active) 'doom-modeline-buffer-minor-mode))))
;;