How to define shortcuts using the mac 'command' key in aquamacs (or emacs)
Question
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 advance!
Solution
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow