开发者

How to define shortcuts using the mac 'command' key in aquamacs (or emacs)

How can I define an aquamacs keyboard shortcut using the mac command key. I'd like 'command'-k to act like ctrl-k (kill line). Thanks in a开发者_C百科dvance!


Put this in your .emacs file:

(global-set-key (kbd "A-k") 'kill-line)

Then you can either press C-x C-e with the pointer at the end of this line to make the command active, or you can save the file and re-start emacs.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜