diff --git a/modules/ui/doom-modeline/config.el b/modules/ui/doom-modeline/config.el index 87af63df9..c8e9283e9 100644 --- a/modules/ui/doom-modeline/config.el +++ b/modules/ui/doom-modeline/config.el @@ -291,6 +291,11 @@ directory, the file name, and its state (modified, read-only or non-existent)." (propertize file-path 'face `(:inherit ,faces)) file-path))))) +;; +(def-modeline-segment! buffer-info-simple + "Return the current buffer name only, but with fontification." + (propertize "%b" 'face (if (active) 'doom-modeline-buffer-file))) + ;; (def-modeline-segment! buffer-encoding "Displays the encoding and eol style of the buffer the same way Atom does." @@ -545,7 +550,7 @@ with `evil-ex-substitute', and/or 4. The number of active `iedit' regions." (media-info major-mode)) (def-modeline! special - (bar matches " %b %l:%c %p " selection-info) + (bar matches " " buffer-info-simple " %l:%c %p " selection-info) (buffer-encoding major-mode flycheck)) (def-modeline! project