From fcb88ef94022f6b35b8529d588564f124d97016f Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 3 Mar 2017 17:49:30 -0500 Subject: [PATCH] ui/doom-modeline: support emacs macros in macro display segment --- modules/ui/doom-modeline/config.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/ui/doom-modeline/config.el b/modules/ui/doom-modeline/config.el index 387739117..118e23265 100644 --- a/modules/ui/doom-modeline/config.el +++ b/modules/ui/doom-modeline/config.el @@ -410,11 +410,13 @@ lines are selected, or the NxM dimensions of a block selection." (defun +doom-modeline--macro-recording () - "Display current macro being recorded." - (when (and (active) (bound-and-true-p evil-this-macro)) + "Display current Emacs or evil macro being recorded." + (when (and (active) (or defining-kbd-macro executing-kbd-macro)) (let ((sep (propertize " " 'face 'doom-modeline-panel))) (concat sep - (propertize (char-to-string evil-this-macro) + (propertize (if (bound-and-true-p evil-this-macro) + (char-to-string evil-this-macro) + "Macro") 'face 'doom-modeline-panel) sep (all-the-icons-octicon "triangle-right"