Improve macro segment.

This commit is contained in:
Vincent Zhang 2019-03-12 21:08:06 +07:00
parent 0a38a65d39
commit 43d0956960

View file

@ -955,10 +955,14 @@ lines are selected, or the NxM dimensions of a block selection."
(when (and (doom-modeline--active) (or defining-kbd-macro executing-kbd-macro)) (when (and (doom-modeline--active) (or defining-kbd-macro executing-kbd-macro))
(let ((sep (propertize " " 'face 'doom-modeline-panel))) (let ((sep (propertize " " 'face 'doom-modeline-panel)))
(concat sep (concat sep
(propertize (if (bound-and-true-p evil-this-macro) (if doom-modeline-icon
(char-to-string evil-this-macro) (doom-modeline-icon-material "fiber_manual_record"
"Macro") :face 'doom-modeline-panel
'face 'doom-modeline-panel) :v-adjust (/ -0.27 all-the-icons-scale-factor))
(propertize (if (bound-and-true-p evil-this-macro)
(char-to-string evil-this-macro)
"Macro")
'face 'doom-modeline-panel))
sep sep
(if doom-modeline-icon (if doom-modeline-icon
(doom-modeline-icon-octicon "triangle-right" (doom-modeline-icon-octicon "triangle-right"