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

How to determine the aquamacs keyboard shortcut using the mac command line key. I would like command-k to act like ctrl-k (kill line). Thanks in advance!

+4
source share
1 answer

Put this in the .emacs file:

(global-set-key (kbd "Ak") 'kill-line) 

You can then press Cx Ce with the pointer at the end of this line to activate the command, or you can save the file and restart emacs.

+5
source

Source: https://habr.com/ru/post/1315602/


All Articles