Книги автора: Learning GNU Emacs, 3rd Edition
/ Книги автора: Learning GNU Emacs, 3rd Edition
/ Книги автора: Learning GNU Emacs, 3rd Edition
/ Книги автора: Learning GNU Emacs, 3rd Edition
Искусство программирования для UnixThe Art of Unix Programming
/ Книги автора: Learning GNU Emacs, 3rd Edition
Книга: Learning GNU Emacs, 3rd Edition
6.6 Binding Your Macro to a Key
6.6 Binding Your Macro to a Key
Binding a macro to a key is easy. The key sequences C-x C-k 0 through 9 and capital A through Z are reserved for user macro bindings. You can choose one that strikes you as mnemonic for your macro.
For example, to bind our transpose names macro to C-x C-k T, type C-x C-k b. Emacs prompts for the key binding. Type C-x C-k T Enter. Emacs confirms, Keyboard macro bound to C-x C-k T
. Binding a macro command to a key in this way works for only one session. We want to keep this macro, so read on to find out how to make this binding permanent.
Оглавление статьи/книги
- A Macro Revolution
- 6.1 Defining a Macro
- 6.2 Tips for Creating Good Macros
- 6.3 A More Complicated Macro Example
- 6.4 Editing a Macro
- 6.5 The Macro Ring
- 6.6 Binding Your Macro to a Key
- 6.7 Naming, Saving, and Executing Your Macros
- 6.8 Building More Complicated Macros
- 6.9 Executing Macros on a Region
- 6.10 Beyond Macros
Похожие страницы
- 6.4 Editing a Macro
- Chapter 12. Debugging your scripts
- Listing your active rule-set
- Updating and flushing your tables
- How to use this License for your documents
- 2. How to Apply These Terms to Your New Programs
- Data Binding Using the GridView Control
- 3.2. Ключи типа key_t и функция ftok
- Scaling makes your object darker?
- Partitioning Your Hard Drive
- Keeping Your Software Up-to-Date
- Assessing Your Backup Needs and Resources