Eval +modeline-major-mode live

It's a small segment. We can afford it being a little more greedy.
This commit is contained in:
Henrik Lissner 2018-08-01 15:01:27 +02:00
parent b1aa478528
commit e79111ff54
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -356,10 +356,8 @@ buffers.")
" "))
(def-modeline-segment! +modeline-major-mode
:on-set (mode-name)
:faces t
(propertize (format-mode-line mode-name)
'face 'doom-modeline-buffer-major-mode))
'face (if (active) 'doom-modeline-buffer-major-mode)))
(defun +modeline--macro-recording ()
"Display current Emacs or evil macro being recorded."