miniblog.
← Back to all posts
Mar 9, 2016 at 19:01
Accidentally defined a keyboard macro in Emacs? There's a macro ring, so you can get your previous macro back with kmacro-delete-ring-head!
Wilfred Hughes
Related Posts
Mar 1, 2016 at 23:02
Emacs macro tip: press F3 during macro creation to insert an incrementing number. You can use kmacro-set-counter to set its initial value.
Wilfred Hughes
Shared words: Emacs, kmacro, macro Score: 93.7
Nov 27, 2015 at 13:18
Emacs command of the day: kmacro-name-last-macro. Concocted a great macro? Save your last macro as a named command for later use.
Wilfred Hughes
Shared words: Emacs, kmacro, macro Score: 93.7
Apr 7, 2019 at 19:50
Today I learnt that Emacs keyboard macros can just be strings in a keymap! (global-set-key (kbd "C-c h") "hello") Types the keys h, e, l, l, o in the current buffer, which might insert or do something else depending on the mode.
Wilfred Hughes
Shared words: Emacs, keyboard, macro Score: 64.8