How to assign multiple keybindings to a single command?

8 views
Skip to first unread message

Dan

unread,
Jun 15, 2010, 4:51:31 PM6/15/10
to ErgoEmacs
I'm giving ErgoEmacs mode a try to see if I can use Emacs more
comfortably. In many cases, though, I don't want to outright replace
the default Emacs keybindings.

For example, in the context of ErgoEmacs' navigation shortcut
structure, M-h makes sense as a replacement for C-a--but I want to be
able to use both, not just M-h. How do I do this?

(FWIW, I asked the same question at Stack Overflow:
http://stackoverflow.com/questions/3048230/assign-multiple-emacs-keybindings-to-a-single-command)

Xah Lee

unread,
Jun 15, 2010, 5:43:11 PM6/15/10
to ErgoEmacs
> (FWIW, I asked the same question at Stack Overflow:http://stackoverflow.com/questions/3048230/assign-multiple-emacs-keyb...)

that's very easy.

in the ergoemacs-mode.el file, there's this line

(load "ergoemacs-unbind")

just comment it out.

That should be all you need to do. However, note that ErgoEmacs
keybinding defines those common shortcuts such as Open, Close, New,
Save... with keys Ctrl+o, Ctrl+w, Ctrl+n, Ctrl+s etc. About 7 of them
or so. So, i think some of these will hit on emacs traditional
bindings with Ctrl.

if you are new to ErgoEmacs and trying to explore it, you might just
try starting with few keys.
this page might have some useful info: http://code.google.com/p/ergoemacs/wiki/adoption

thanks for checking out ErgoEmacs!

Xah
http://xahlee.org/

Dan

unread,
Jun 16, 2010, 12:37:53 PM6/16/10
to ErgoEmacs
Great--thanks for your help!
Reply all
Reply to author
Forward
0 new messages