mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add buffer-info-simple modeline segment
This commit is contained in:
@ -291,6 +291,11 @@ directory, the file name, and its state (modified, read-only or non-existent)."
|
|||||||
(propertize file-path 'face `(:inherit ,faces))
|
(propertize file-path 'face `(:inherit ,faces))
|
||||||
file-path)))))
|
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
|
(def-modeline-segment! buffer-encoding
|
||||||
"Displays the encoding and eol style of the buffer the same way Atom does."
|
"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))
|
(media-info major-mode))
|
||||||
|
|
||||||
(def-modeline! special
|
(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))
|
(buffer-encoding major-mode flycheck))
|
||||||
|
|
||||||
(def-modeline! project
|
(def-modeline! project
|
||||||
|
Reference in New Issue
Block a user