minmo : mode-line-window-selected-p for buffer-name

This commit is contained in:
bth 2026-05-27 13:11:35 -07:00
commit aa70079b44

View file

@ -169,7 +169,9 @@ Uses the fast `vc-state' cache rather than synchronous git calls."
;;; buffer-name
(defun minmo-buffer-name ()
(propertize (buffer-name) 'face 'success))
(if (mode-line-window-selected-p)
(propertize (buffer-name) 'face 'success)
(buffer-name)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; major-mode