Improve faces of the buffer info.

This commit is contained in:
Vincent Zhang 2018-11-18 02:08:51 +08:00
parent c809e27487
commit 7f28abb514

View file

@ -658,7 +658,8 @@ directory, the file name, and its state (modified, read-only or non-existent)."
" ")))) " "))))
(if buffer-file-name (if buffer-file-name
(doom-modeline-update-buffer-file-name) (doom-modeline-update-buffer-file-name)
"%b")))) (propertize "%b" 'face (when (doom-modeline--active)
'doom-modeline-buffer-file))))))
(doom-modeline-def-segment buffer-info-simple (doom-modeline-def-segment buffer-info-simple
"Display only the current buffer's name, but with fontification." "Display only the current buffer's name, but with fontification."