Книга: Learning GNU Emacs, 3rd Edition
3.4.2.1 Trying word abbreviations for one session
3.4.2.1 Trying word abbreviations for one session
Usually, if you go to the trouble of defining a word abbreviation, you will use it in more than one Emacs session. But if you'd like to try out abbreviation mode to see if you want to incorporate it into your startup, use the following procedure.
To define word abbreviations for this buffer and session:
1. Enter word abbreviation mode by typing M-x abbrev-mode Enter. Abbrev
appears on the mode line. For a global abbreviation, type the abbreviation you want to use and type C-x a i g or C-x a - (for add-inverse-global). (For a local abbreviation, type C-x a i l for add-inverse-local instead.) Emacs then asks you for the expansion.
2. Type the definition for the abbreviation and press Enter. Emacs then expands the abbreviation and will do so each time you type it followed by a space or punctuation mark.
3. When you exit Emacs. it asks if you want to save the abbreviations in .abbrev_defs. Type y if you want to save them.
4. The abbreviations you've defined will work only in buffers where you enter abbrev mode.
If you find that you like using word abbreviation mode, you may want to make it part of your startup, as described in the following section.
- Forced writes - палка о двух концах
- Forced Writes
- Chapter 15. Graphical User Interfaces for Iptables
- What NAT is used for and basic terms and expressions
- Information request
- Data sending and control session
- SCTP Generic header format
- Как уменьшить размер документа Microsoft Word?
- System tools used for debugging
- FORWARD chain
- How to use this License for your documents
- 1. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION