Command Macros
Saving Arbitrary Keystrokes
You can, with Emacs' macro facility, create, replay, name and save
keyboard macros comprised of almost any arbitrary key sequence. You start
the definition of a keyboard macro with "C-x(" and
terminate it with "C-x)". After a macro is
defined, you can do the following things:
- "
C-x e" runs the command
"call-last-kbd-macro" to
execute it
- "
M-x name-last-kbd-macro" to give your
macro a name
- "
insert-kbd-macro" inserts the Lisp code
from a named
macro into the current buffer
- "
C-xC-w" runs the
"write-file" command to
write the file to disk
- "
M-x load-file" loads Lisp code from disk and
interprets it
Repating Multiple Macros
Once you create a macro, chances are pretty good you will want to run
it more than once...that's why you created it to begin
with. "C-u some-number your-command" will
execute "your-command" exactly
"some-number" times. This can be used to run
the command "call-last-kbd-macro", or any command, for
that matter, bunches o' times.
Beginning |
Previous |
Next
Last updated $Date: 1997/04/11 03:46:11 $.