[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
A keyboard macro is a command defined by the user to stand for another sequence of keys. For example, if you discover that you are about to type C-n C-d forty times, you can speed your work by defining a keyboard macro to do C-n C-d and calling it with a repeat count of forty.
Start defining a keyboard macro (start-kbd-macro
).
End the definition of a keyboard macro (end-kbd-macro
).
Execute the most recent keyboard macro (call-last-kbd-macro
).
Re-execute last keyboard macro, then add more keys to its definition.
When this point is reached during macro execution, ask for confirmation
(kbd-macro-query
).
Give a command name (for the duration of the session) to the most recently defined keyboard macro.
Insert in the buffer a keyboard macro's definition, as Lisp code.
Edit a previously defined keyboard macro (edit-kbd-macro
).
Run the last keyboard macro on each complete line in the region.
Keyboard macros differ from ordinary Emacs commands in that they are written in the Emacs command language rather than in Lisp. This makes it easier for the novice to write them, and makes them more convenient as temporary hacks. However, the Emacs command language is not powerful enough as a programming language to be useful for writing anything intelligent or general. For such things, Lisp must be used.
You define a keyboard macro while executing the commands which are the definition. Put differently, as you define a keyboard macro, the definition is being executed for the first time. This way, you can see what the effects of your commands are, so that you don't have to figure them out in your head. When you are finished, the keyboard macro is defined and also has been, in effect, executed once. You can then do the whole thing over again by invoking the macro.
AE.3.1 Uso elemental | Defining and running keyboard macros. | |
AE.3.2 Bautizar y guardar macros de teclado | Giving keyboard macros names; saving them in files. | |
AE.3.3 Ejecutar macros con variaciones | Making keyboard macros do different things each time. |
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated by Roberto on enero, 3 2007 using texi2html 1.76.