Is there as simple way to have a clear indicator when I'm defining a keyboard macro (kmacro-start-macro-or-insert-counter), e.g. by changing the mode-line background or something similar?
The "Def" indicator is hard to parse out and sometimes not visible due to many minor-mode indicators/narrow screen.
Thank you very much!
I used the standard functions bound to
f3andf4and modified them by addingmy-modeline-face-function, and rebound those keys to the new functions. You can change the colors of the faces inmy-modeline-face-functionto suit your needs. I chose to usecondbecause you may find that you have other similar needs for the various major and minor modes, and you can insert similar conditions for those modes. [For example, you could do this for isearch-mode, or calculcator-mode, etc.]The value returned by
face-remap-add-relativeis stored in a custom variable that I namedmy-face-remap-cookie, which in turn is used at the end of the macro recording phase as an argument to the functionface-remap-remove-relative.