如何在Emacs init文件中生成键盘宏? [英] How can I generate a keyboard macro in my Emacs init file?
本文介绍了如何在Emacs init文件中生成键盘宏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这样做?
解决方案
保存键盘宏手册?
cx ck n
给最近定义的键盘宏(kmacro-name-last-macro)指定一个命令名称(持续时间为Emacs会话)。
C-x C-k b
将最近定义的键盘宏绑定到键序列(在会话期间)(kmacro-bind-to-key)。
M-x insert-kbd-macro
在缓冲区中插入一个键盘宏的定义,作为Lisp代码。
I am defining a particular keyboard macro quite often, so I thought that it might be handy if it was automatically available every time I load Emacs.
How can I do this?
解决方案
How about the save keyboard macros section of the manual?
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.
这篇关于如何在Emacs init文件中生成键盘宏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文