我经常定义一个特定的键盘宏,所以我认为如果每次加载 Emacs 时它都自动可用,它可能会很方便。
我怎样才能做到这一点?
手册的保存键盘宏部分怎么样?
C-x C-k n
Give a command name (for the duration of the Emacs session) to the most recently defined keyboard macro (kmacro-name-last-macro).
C-x C-k b
Bind the most recently defined keyboard macro to a key sequence (for the duration of the session) (kmacro-bind-to-key).
M-x insert-kbd-macro
Insert in the buffer a keyboard macro's definition, as Lisp code.