Mail Archives: djgpp/1999/03/23/16:49:05
sl wrote:
> How does it make sense that in order to record a macro you have to
> type in approx 3 "shortcut keys" and in order to use the macro you have to
> type 2 "shortcut keys" .. there's nothing short/easy about them.. I highly
> dislike how EMACS uses ctrl-this or that for EVERY key.. it's UGLY
Actually, you can bind whatever keys you want to a macro. Use C-x ( and
C-x ) to define the macro as usual. Then do M-x name-last-kbd-macro and
give the thing a name ("foo"). You can now run it with M-x foo, if that
helps, and then use M-x global-set-key to assign it to any other key you
want. This is extremely helpful if you have some simple task you need
to do a lot, but don't want to learn Lisp to write it.
These commands are on the quick-reference card, btw, which I *highly*
recommend you print out and keep in a convenient place.
There are also several commands for editing the definition of a macro;
do C-h a kbd-macro for more info.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -