1 \input texinfo @c -*- coding: iso-latin-1 -*-
3 @setfilename ../../info/emacs
4 @settitle GNU Emacs Manual
6 @c The edition number appears in several places in this file
11 This is the @value{EDITION} edition of the @cite{GNU Emacs Manual},@*
12 updated for Emacs version @value{EMACSVER}.
14 Copyright @copyright{} 1985-1987, 1993-2011 Free Software Foundation, Inc.
17 Permission is granted to copy, distribute and/or modify this document
18 under the terms of the GNU Free Documentation License, Version 1.3 or
19 any later version published by the Free Software Foundation; with the
20 Invariant Sections being ``The GNU Manifesto,'' ``Distribution'' and
21 ``GNU GENERAL PUBLIC LICENSE,'' with the Front-Cover texts being ``A GNU
22 Manual,'' and with the Back-Cover Texts as in (a) below. A copy of the
23 license is included in the section entitled ``GNU Free Documentation
26 (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
27 modify this GNU manual. Buying copies from the FSF supports it in
28 developing GNU and promoting software freedom.''
32 @documentencoding ISO-8859-1
36 * Emacs: (emacs). The extensible self-documenting text editor.
39 @c in general, keep the following line commented out, unless doing a
40 @c copy of this manual that will be published. The manual should go
41 @c onto the distribution in the full, 8.5 x 11" size.
48 @c per rms and peterb, use 10pt fonts for the main text, mostly to
49 @c save on paper cost.
50 @c Do this inside @tex for now, so current makeinfo does not complain.
54 \global\let\urlcolor=\Black % don't print links in grayscale
55 \global\let\linkcolor=\Black
57 \global\hbadness=6666 % don't worry about not-too-underfull boxes
66 @shorttitlepage GNU Emacs Manual
71 @center @titlefont{GNU Emacs Manual}
73 @center @value{EDITION} Edition, Updated for Emacs Version @value{EMACSVER}.
75 @center Richard Stallman
77 @vskip 0pt plus 1filll
81 Published by the Free Software Foundation @*
82 51 Franklin Street, Fifth Floor @*
83 Boston, MA 02110-1301 USA @*
87 Cover art by Etienne Suvasa.
97 @node Top, Distrib, (dir), (dir)
100 Emacs is the extensible, customizable, self-documenting real-time
101 display editor. This Info file describes how to edit with Emacs and
102 some of how to customize it; it corresponds to GNU Emacs version
106 To learn more about the Info documentation system, type @kbd{h},
107 to visit a programmed instruction sequence for the Info commands.
110 For information on extending Emacs, see @ref{Top, Emacs Lisp,, elisp, The
111 Emacs Lisp Reference Manual}.
117 These subcategories have been deleted for simplicity
118 and to avoid conflicts.
121 Auto-Saving: Protection Against Disasters
127 Shell Command History
129 The ones for Dired and Rmail have had the items turned into :: items
131 Also Running Shell Commands from Emacs
132 and Sending Mail and Registers and Minibuffer.
136 * Distrib:: How to get the latest Emacs distribution.
137 * Intro:: An introduction to Emacs concepts.
138 @c Note that in the printed manual, the glossary and indices come last.
139 * Glossary:: Terms used in this manual.
141 Indexes (each index contains a large menu)
142 * Key Index:: An item for each standard Emacs key sequence.
143 * Option Index:: An item for every command-line option.
144 * Command Index:: An item for each command name.
145 * Variable Index:: An item for each documented variable.
146 * Concept Index:: An item for each concept.
148 * Acknowledgments:: Major contributors to GNU Emacs.
150 Important General Concepts
151 * Screen:: How to interpret what you see on the screen.
152 * User Input:: Kinds of input events (characters, buttons,
154 * Keys:: Key sequences: what you type to request one
156 * Commands:: Named functions run by key sequences to do editing.
157 * Entering Emacs:: Starting Emacs from the shell.
158 * Exiting:: Stopping or killing Emacs.
160 Fundamental Editing Commands
161 * Basic:: The most basic editing commands.
162 * Minibuffer:: Entering arguments that are prompted for.
163 * M-x:: Invoking commands by their names.
164 * Help:: Commands for asking Emacs about its commands.
166 Important Text-Changing Commands
167 * Mark:: The mark: how to delimit a "region" of text.
168 * Killing:: Killing (cutting) text.
169 * Yanking:: Recovering killed text. Moving text. (Pasting.)
170 * Cut and Paste:: Clipboard and selections on graphical displays.
171 * Accumulating Text:: Other ways of copying text.
172 * Rectangles:: Operating on text in rectangular areas.
173 * CUA Bindings:: Using @kbd{C-x}, @kbd{C-c}, @kbd{C-v} to kill and yank.
174 * Registers:: Saving a text string or a location in the buffer.
175 * Display:: Controlling what text is displayed.
176 * Search:: Finding or replacing occurrences of a string.
177 * Fixit:: Commands especially useful for fixing typos.
178 * Keyboard Macros:: Recording a sequence of keystrokes to be replayed.
180 Major Structures of Emacs
181 * Files:: All about handling files.
182 * Buffers:: Multiple buffers; editing several files at once.
183 * Windows:: Viewing two pieces of text at once.
184 * Frames:: Running the same Emacs session in multiple X windows.
185 * International:: Using non-@acronym{ASCII} character sets.
188 * Modes:: Major and minor modes alter Emacs' basic behavior.
189 * Indentation:: Editing the white space at the beginnings of lines.
190 * Text:: Commands and modes for editing English.
191 * Programs:: Commands and modes for editing programs.
192 * Building:: Compiling, running and debugging programs.
193 * Maintaining:: Features for maintaining large programs.
194 * Abbrevs:: Defining text abbreviations to reduce
195 the number of characters you must type.
196 @c AFAICS, the tex stuff generates its own index and does not use this one.
198 * Picture Mode:: Editing pictures made up of characters using
199 the quarter-plane screen model.
201 * Sending Mail:: Sending mail in Emacs.
202 * Rmail:: Reading mail in Emacs.
203 * Dired:: You can "edit" a directory to manage files in it.
204 * Calendar/Diary:: The calendar and diary facilities.
205 * Document View:: Viewing PDF, PS and DVI files.
206 * Gnus:: A flexible mail and news reader.
207 * Shell:: Executing shell commands from Emacs.
208 * Emacs Server:: Using Emacs as an editing server.
209 * Printing:: Printing hardcopies of buffers or regions.
210 * Sorting:: Sorting lines, paragraphs or pages within Emacs.
211 * Narrowing:: Restricting display and editing to a portion
213 * Two-Column:: Splitting apart columns to edit them
214 in side-by-side windows.
215 * Editing Binary Files::Using Hexl mode to edit binary files.
216 * Saving Emacs Sessions:: Saving Emacs state from one session to the next.
217 * Recursive Edit:: A command can allow you to do editing
218 "within the command". This is called a
219 "recursive editing level".
220 * Emulation:: Emulating some other editors with Emacs.
221 * Hyperlinking:: Following links in buffers.
222 * Amusements:: Various games and hacks.
223 * Customization:: Modifying the behavior of Emacs.
225 Recovery from Problems
226 * Quitting:: Quitting and aborting.
227 * Lossage:: What to do if Emacs is hung or malfunctioning.
228 * Bugs:: How and when to report a bug.
229 * Contributing:: How to contribute improvements to Emacs.
230 * Service:: How to get help for your own Emacs needs.
233 * Copying:: The GNU General Public License gives you permission
234 to redistribute GNU Emacs on certain terms;
235 it also explains that there is no warranty.
236 * GNU Free Documentation License:: The license for this documentation.
237 * Emacs Invocation:: Hairy startup options.
238 * X Resources:: X resources for customizing Emacs.
239 * Antinews:: Information about Emacs version 22.
240 * Mac OS / GNUstep:: Using Emacs under Mac OS and GNUstep.
241 * Microsoft Windows:: Using Emacs on Microsoft Windows and MS-DOS.
242 * Manifesto:: What's GNU? Gnu's Not Unix!
244 @c Do NOT modify the following 3 lines! They must have this form to
245 @c be correctly identified by `texinfo-multiple-files-update'. In
246 @c particular, the detailed menu header line MUST be identical to the
247 @c value of `texinfo-master-menu-header'. See texnfo-upd.el.
250 --- The Detailed Node Listing ---
251 ---------------------------------
253 Here are some other nodes which are really subnodes of the ones
254 already listed, mentioned here so you can get to them in one step:
256 The Organization of the Screen
258 * Point:: The place in the text where editing commands operate.
259 * Echo Area:: Short messages appear at the bottom of the screen.
260 * Mode Line:: Interpreting the mode line.
261 * Menu Bar:: How to use the menu bar.
263 Basic Editing Commands
265 * Inserting Text:: Inserting text by simply typing it.
266 * Moving Point:: Moving the cursor to the place where you want to
268 * Erasing:: Deleting and killing text.
269 * Basic Undo:: Undoing recent changes in the text.
270 * Basic Files:: Visiting, creating, and saving files.
271 * Basic Help:: Asking what a character does.
272 * Blank Lines:: Making and deleting blank lines.
273 * Continuation Lines:: How Emacs displays lines too wide for the screen.
274 * Position Info:: What page, line, row, or column is point on?
275 * Arguments:: Numeric arguments for repeating a command N times.
276 * Repeating:: Repeating the previous command quickly.
280 * Minibuffer File:: Entering file names with the minibuffer.
281 * Minibuffer Edit:: How to edit in the minibuffer.
282 * Completion:: An abbreviation facility for minibuffer input.
283 * Minibuffer History:: Reusing recent minibuffer arguments.
284 * Repetition:: Re-executing commands that used the minibuffer.
285 * Passwords:: Entering passwords in the echo area.
289 * Completion Example:: Examples of using completion.
290 * Completion Commands:: A list of completion commands.
291 * Strict Completion:: Different types of completion.
292 * Completion Options:: Options for completion.
296 * Help Summary:: Brief list of all Help commands.
297 * Key Help:: Asking what a key does in Emacs.
298 * Name Help:: Asking about a command, variable or function name.
299 * Apropos:: Asking what pertains to a given topic.
300 * Help Mode:: Special features of Help mode and Help buffers.
301 * Library Keywords:: Finding Lisp libraries by keywords (topics).
302 * Language Help:: Help relating to international language support.
303 * Misc Help:: Other help commands.
304 * Help Files:: Commands to display pre-written help files.
305 * Help Echo:: Help on active text and tooltips (`balloon help').
307 The Mark and the Region
309 * Setting Mark:: Commands to set the mark.
310 * Marking Objects:: Commands to put region around textual units.
311 * Using Region:: Summary of ways to operate on contents of the region.
312 * Mark Ring:: Previous mark positions saved so you can go back there.
313 * Global Mark Ring:: Previous mark positions in various buffers.
314 * Shift Selection:: Using shifted cursor motion keys.
315 * Persistent Mark:: Keeping the mark active all the time.
317 Killing and Moving Text
319 * Deletion:: Commands for deleting small amounts of text and
321 * Killing by Lines:: How to kill entire lines of text at one time.
322 * Other Kill Commands:: Commands to kill large regions of text and
323 syntactic units such as words and sentences.
324 * Kill Options:: Options that affect killing.
328 * Kill Ring:: Where killed text is stored. Basic yanking.
329 * Appending Kills:: Several kills in a row all yank together.
330 * Earlier Kills:: Yanking something killed some time ago.
332 Killing and Yanking on Graphical Displays
334 * Clipboard:: How Emacs interacts with the system clipboard.
335 * Primary Selection:: The temporarily selected text selection.
336 * Secondary Selection:: Cutting without altering point and mark.
340 * Position Registers:: Saving positions in registers.
341 * Text Registers:: Saving text in registers.
342 * Rectangle Registers:: Saving rectangles in registers.
343 * Configuration Registers:: Saving window configurations in registers.
344 * Number Registers:: Numbers in registers.
345 * File Registers:: File names in registers.
346 * Bookmarks:: Bookmarks are like registers, but persistent.
348 Controlling the Display
350 * Scrolling:: Commands to move text up and down in a window.
351 * Auto Scrolling:: Redisplay scrolls text automatically when needed.
352 * Horizontal Scrolling:: Moving text left and right in a window.
353 * Follow Mode:: Follow mode lets two windows scroll as one.
354 * Faces:: How to change the display style using faces.
355 * Standard Faces:: Emacs' predefined faces.
356 * Temporary Face Changes:: Commands to temporarily modify the default text face
357 * Font Lock:: Minor mode for syntactic highlighting using faces.
358 * Highlight Interactively:: Tell Emacs what text to highlight.
359 * Fringes:: Enabling or disabling window fringes.
360 * Displaying Boundaries:: Displaying top and bottom of the buffer.
361 * Useless Whitespace:: Showing possibly-spurious trailing whitespace.
362 * Selective Display:: Hiding lines with lots of indentation.
363 * Optional Mode Line:: Optional mode line display features.
364 * Text Display:: How text characters are normally displayed.
365 * Cursor Display:: Features for displaying the cursor.
366 * Line Truncation:: Truncating lines to fit the screen width instead
367 of continuing them to multiple screen lines.
368 * Visual Line Mode:: Word wrap and screen line-based editing.
369 * Display Custom:: Information on variables for customizing display.
371 Searching and Replacement
373 * Incremental Search:: Search happens as you type the string.
374 * Nonincremental Search:: Specify entire string and then search.
375 * Word Search:: Search for sequence of words.
376 * Regexp Search:: Search for match for a regexp.
377 * Regexps:: Syntax of regular expressions.
378 * Regexp Backslash:: Regular expression constructs starting with `\'.
379 * Regexp Example:: A complex regular expression explained.
380 * Search Case:: To ignore case while searching, or not.
381 * Replace:: Search, and replace some or all matches.
382 * Other Repeating Search:: Operating on all matches for some regexp.
386 * Basic Isearch:: Basic incremental search commands.
387 * Repeat Isearch:: Searching for the same string again.
388 * Error in Isearch:: When your string is not found.
389 * Special Isearch:: Special input in incremental search.
390 * Isearch Yank:: Commands that grab text into the search string
391 or else edit the search string.
392 * Isearch Scroll:: Scrolling during an incremental search.
393 * Isearch Minibuffer:: Incremental search of the minibuffer history.
394 * Slow Isearch:: Incremental search features for slow terminals.
398 * Unconditional Replace:: Replacing all matches for a string.
399 * Regexp Replace:: Replacing all matches for a regexp.
400 * Replacement and Case:: How replacements preserve case of letters.
401 * Query Replace:: How to use querying.
403 Commands for Fixing Typos
405 * Undo:: The Undo commands.
406 * Transpose:: Exchanging two characters, words, lines, lists...
407 * Fixing Case:: Correcting case of last word entered.
408 * Spelling:: Apply spelling checker to a word, or a whole file.
412 * Basic Keyboard Macro:: Defining and running keyboard macros.
413 * Keyboard Macro Ring:: Where previous keyboard macros are saved.
414 * Keyboard Macro Counter:: Inserting incrementing numbers in macros.
415 * Keyboard Macro Query:: Making keyboard macros do different things each time.
416 * Save Keyboard Macro:: Giving keyboard macros names; saving them in files.
417 * Edit Keyboard Macro:: Editing keyboard macros.
418 * Keyboard Macro Step-Edit:: Interactively executing and editing a keyboard
423 * File Names:: How to type and edit file-name arguments.
424 * Visiting:: Visiting a file prepares Emacs to edit the file.
425 * Saving:: Saving makes your changes permanent.
426 * Reverting:: Reverting cancels all the changes not saved.
427 * Autorevert:: Auto Reverting non-file buffers.
428 * Auto Save:: Auto Save periodically protects against loss of data.
429 * File Aliases:: Handling multiple names for one file.
430 * Directories:: Creating, deleting, and listing file directories.
431 * Comparing Files:: Finding where two files differ.
432 * Diff Mode:: Mode for editing file differences.
433 * Misc File Ops:: Other things you can do on files.
434 * Compressed Files:: Accessing compressed files.
435 * File Archives:: Operating on tar, zip, jar etc. archive files.
436 * Remote Files:: Accessing files on other sites.
437 * Quoted File Names:: Quoting special characters in file names.
438 * File Name Cache:: Completion against a list of files you often use.
439 * File Conveniences:: Convenience Features for Finding Files.
440 * Filesets:: Handling sets of files.
444 * Save Commands:: Commands for saving files.
445 * Backup:: How Emacs saves the old version of your file.
446 * Customize Save:: Customizing the saving of files.
447 * Interlocking:: How Emacs protects against simultaneous editing
448 of one file by two users.
449 * File Shadowing:: Copying files to "shadows" automatically.
450 * Time Stamps:: Emacs can update time stamps on saved files.
454 * Backup Names:: How backup files are named.
455 * Backup Deletion:: Emacs deletes excess numbered backups.
456 * Backup Copying:: Backups can be made by copying or renaming.
458 Auto Reverting Non-File Buffers
460 * Auto Reverting the Buffer Menu:: Auto Revert of the Buffer Menu.
461 * Auto Reverting Dired:: Auto Revert of Dired buffers.
462 * Supporting additional buffers:: How to add more Auto Revert support.
464 Auto-Saving: Protection Against Disasters
466 * Auto Save Files:: The file where auto-saved changes are
467 actually made until you save the file.
468 * Auto Save Control:: Controlling when and how often to auto-save.
469 * Recover:: Recovering text from auto-save files.
471 Using Multiple Buffers
473 * Select Buffer:: Creating a new buffer or reselecting an old one.
474 * List Buffers:: Getting a list of buffers that exist.
475 * Misc Buffer:: Renaming; changing read-onlyness; copying text.
476 * Kill Buffer:: Killing buffers you no longer need.
477 * Several Buffers:: How to go through the list of all buffers
478 and operate variously on several of them.
479 * Indirect Buffers:: An indirect buffer shares the text of another buffer.
480 * Buffer Convenience:: Convenience and customization features for
483 Convenience Features and Customization of Buffer Handling
485 * Uniquify:: Making buffer names unique with directory parts.
486 * Iswitchb:: Switching between buffers with substrings.
487 * Buffer Menus:: Configurable buffer menu.
491 * Basic Window:: Introduction to Emacs windows.
492 * Split Window:: New windows are made by splitting existing windows.
493 * Other Window:: Moving to another window or doing something to it.
494 * Pop Up Window:: Finding a file or buffer in another window.
495 * Force Same Window:: Forcing certain buffers to appear in the selected
496 window rather than in another window.
497 * Change Window:: Deleting windows and changing their sizes.
498 * Window Convenience:: Convenience functions for window handling.
500 Frames and Graphical Displays
502 * Mouse Commands:: Moving, cutting, and pasting, with the mouse.
503 * Word and Line Mouse:: Mouse commands for selecting whole words or lines.
504 * Mouse References:: Using the mouse to select an item from a list.
505 * Menu Mouse Clicks:: Mouse clicks that bring up menus.
506 * Mode Line Mouse:: Mouse clicks on the mode line.
507 * Creating Frames:: Creating additional Emacs frames with various contents.
508 * Frame Commands:: Iconifying, deleting, and switching frames.
509 * Fonts:: Changing the frame font.
510 * Speedbar:: How to make and use a speedbar frame.
511 * Multiple Displays:: How one Emacs job can talk to several displays.
512 * Special Buffer Frames:: You can make certain buffers have their own frames.
513 * Frame Parameters:: Changing the colors and other modes of frames.
514 * Scroll Bars:: How to enable and disable scroll bars; how to use them.
515 * Wheeled Mice:: Using mouse wheels for scrolling.
516 * Drag and Drop:: Using drag and drop to open files and insert text.
517 * Menu Bars:: Enabling and disabling the menu bar.
518 * Tool Bars:: Enabling and disabling the tool bar.
519 * Dialog Boxes:: Controlling use of dialog boxes.
520 * Tooltips:: Displaying information at the current mouse position.
521 * Mouse Avoidance:: Moving the mouse pointer out of the way.
522 * Non-Window Terminals:: Multiple frames on terminals that show only one.
523 * Text-Only Mouse:: Using the mouse in text-only terminals.
525 International Character Set Support
527 * International Chars:: Basic concepts of multibyte characters.
528 * Enabling Multibyte:: Controlling whether to use multibyte characters.
529 * Language Environments:: Setting things up for the language you use.
530 * Input Methods:: Entering text characters not on your keyboard.
531 * Select Input Method:: Specifying your choice of input methods.
532 * Coding Systems:: Character set conversion when you read and
533 write files, and so on.
534 * Recognize Coding:: How Emacs figures out which conversion to use.
535 * Specify Coding:: Specifying a file's coding system explicitly.
536 * Output Coding:: Choosing coding systems for output.
537 * Text Coding:: Choosing conversion to use for file text.
538 * Communication Coding:: Coding systems for interprocess communication.
539 * File Name Coding:: Coding systems for file @emph{names}.
540 * Terminal Coding:: Specifying coding systems for converting
541 terminal input and output.
542 * Fontsets:: Fontsets are collections of fonts
543 that cover the whole spectrum of characters.
544 * Defining Fontsets:: Defining a new fontset.
545 * Modifying Fontsets:: Modifying an existing fontset.
546 * Undisplayable Characters::When characters don't display.
547 * Unibyte Mode:: You can pick one European character set
548 to use without multibyte characters.
549 * Charsets:: How Emacs groups its internal character codes.
553 * Major Modes:: Text mode vs. Lisp mode vs. C mode...
554 * Minor Modes:: Each minor mode is a feature you can turn on
555 independently of any others.
556 * Choosing Modes:: How modes are chosen when visiting files.
560 * Indentation Commands:: Various commands and techniques for indentation.
561 * Tab Stops:: You can set arbitrary "tab stops" and then
562 indent to the next tab stop when you want to.
563 * Just Spaces:: You can request indentation using just spaces.
565 Commands for Human Languages
567 * Words:: Moving over and killing words.
568 * Sentences:: Moving over and killing sentences.
569 * Paragraphs:: Moving over paragraphs.
570 * Pages:: Moving over pages.
571 * Filling:: Filling or justifying text.
572 * Case:: Changing the case of text.
573 * Text Mode:: The major modes for editing text files.
574 * Outline Mode:: Editing outlines.
575 * TeX Mode:: Editing input to the formatter TeX.
576 * HTML Mode:: Editing HTML and SGML files.
577 * Nroff Mode:: Editing input to the formatter nroff.
578 * Formatted Text:: Editing formatted text directly in WYSIWYG fashion.
579 * Text Based Tables:: Editing text-based tables in WYSIWYG fashion.
583 * Auto Fill:: Auto Fill mode breaks long lines automatically.
584 * Fill Commands:: Commands to refill paragraphs and center lines.
585 * Fill Prefix:: Filling paragraphs that are indented
586 or in a comment, etc.
587 * Adaptive Fill:: How Emacs can determine the fill prefix automatically.
591 * Outline Format:: What the text of an outline looks like.
592 * Outline Motion:: Special commands for moving through
594 * Outline Visibility:: Commands to control what is visible.
595 * Outline Views:: Outlines and multiple views.
596 * Foldout:: Folding means zooming in on outlines.
600 * TeX Editing:: Special commands for editing in TeX mode.
601 * LaTeX Editing:: Additional commands for LaTeX input files.
602 * TeX Print:: Commands for printing part of a file with TeX.
603 * TeX Misc:: Customization of TeX mode, and related features.
605 Editing Formatted Text
607 * Requesting Formatted Text:: Entering and exiting Enriched mode.
608 * Hard and Soft Newlines:: There are two different kinds of newlines.
609 * Editing Format Info:: How to edit text properties.
610 * Format Faces:: Bold, italic, underline, etc.
611 * Format Colors:: Changing the color of text.
612 * Format Indentation:: Changing the left and right margins.
613 * Format Justification:: Centering, setting text flush with the
614 left or right margin, etc.
615 * Format Properties:: The "special" text properties submenu.
616 * Forcing Enriched Mode:: How to force use of Enriched mode.
618 @c The automatic texinfo menu update inserts some duplicate items here
619 @c (faces, colors, indentation, justification, properties), because
620 @c they are listed in two menus. But we already have them above, no
621 @c need to list them twice.
623 Editing Text-based Tables
625 * Table Definition:: What is a text based table.
626 * Table Creation:: How to create a table.
627 * Table Recognition:: How to activate and deactivate tables.
628 * Cell Commands:: Cell-oriented commands in a table.
629 * Cell Justification:: Justifying cell contents.
630 * Row Commands:: Manipulating rows of table cell.
631 * Column Commands:: Manipulating columns of table cell.
632 * Fixed Width Mode:: Fixing cell width.
633 * Table Conversion:: Converting between plain text and tables.
634 * Measuring Tables:: Analyzing table dimension.
635 * Table Misc:: Table miscellany.
639 * Program Modes:: Major modes for editing programs.
640 * Defuns:: Commands to operate on major top-level parts
642 * Program Indent:: Adjusting indentation to show the nesting.
643 * Parentheses:: Commands that operate on parentheses.
644 * Comments:: Inserting, killing, and aligning comments.
645 * Documentation:: Getting documentation of functions you plan to call.
646 * Hideshow:: Displaying blocks selectively.
647 * Symbol Completion:: Completion on symbol names of your program or language.
648 * Glasses:: Making identifiersLikeThis more readable.
649 * Semantic:: Suite of editing tools based on source code parsing.
650 * Misc for Programs:: Other Emacs features useful for editing programs.
651 * C Modes:: Special commands of C, C++, Objective-C,
652 Java, and Pike modes.
653 * Asm Mode:: Asm mode and its special features.
654 * Fortran:: Fortran mode and its special features.
656 Top-Level Definitions, or Defuns
658 * Left Margin Paren:: An open-paren or similar opening delimiter
659 starts a defun if it is at the left margin.
660 * Moving by Defuns:: Commands to move over or mark a major definition.
661 * Imenu:: Making buffer indexes as menus.
662 * Which Function:: Which Function mode shows which function you are in.
664 Indentation for Programs
666 * Basic Indent:: Indenting a single line.
667 * Multi-line Indent:: Commands to reindent many lines at once.
668 * Lisp Indent:: Specifying how each Lisp function should be indented.
669 * C Indent:: Extra features for indenting C and related modes.
670 * Custom C Indent:: Controlling indentation style for C and related modes.
672 Commands for Editing with Parentheses
674 * Expressions:: Expressions with balanced parentheses.
675 * Moving by Parens:: Commands for moving up, down and across
676 in the structure of parentheses.
677 * Matching:: Insertion of a close-delimiter flashes matching open.
679 Manipulating Comments
681 * Comment Commands:: Inserting, killing, and aligning comments.
682 * Multi-Line Comments:: Commands for adding and editing multi-line comments.
683 * Options for Comments::Customizing the comment features.
687 * Info Lookup:: Looking up library functions and commands
689 * Man Page:: Looking up man pages of library functions and commands.
690 * Lisp Doc:: Looking up Emacs Lisp functions, etc.
694 * Motion in C:: Commands to move by C statements, etc.
695 * Electric C:: Colon and other chars can automatically reindent.
696 * Hungry Delete:: A more powerful DEL command.
697 * Other C Commands:: Filling comments, viewing expansion of macros,
698 and other neat features.
702 * Fortran Motion:: Moving point by statements or subprograms.
703 * Fortran Indent:: Indentation commands for Fortran.
704 * Fortran Comments:: Inserting and aligning comments.
705 * Fortran Autofill:: Auto fill support for Fortran.
706 * Fortran Columns:: Measuring columns for valid Fortran.
707 * Fortran Abbrev:: Built-in abbrevs for Fortran keywords.
711 * ForIndent Commands:: Commands for indenting and filling Fortran.
712 * ForIndent Cont:: How continuation lines indent.
713 * ForIndent Num:: How line numbers auto-indent.
714 * ForIndent Conv:: Conventions you must obey to avoid trouble.
715 * ForIndent Vars:: Variables controlling Fortran indent style.
717 Compiling and Testing Programs
719 * Compilation:: Compiling programs in languages other
720 than Lisp (C, Pascal, etc.).
721 * Compilation Mode:: The mode for visiting compiler errors.
722 * Compilation Shell:: Customizing your shell properly
723 for use in the compilation buffer.
724 * Grep Searching:: Searching with grep.
725 * Flymake:: Finding syntax errors on the fly.
726 * Debuggers:: Running symbolic debuggers for non-Lisp programs.
727 * Executing Lisp:: Various modes for editing Lisp programs,
728 with different facilities for running
730 * Lisp Libraries:: Creating Lisp programs to run in Emacs.
731 * Lisp Eval:: Executing a single Lisp expression in Emacs.
732 * Lisp Interaction:: Executing Lisp in an Emacs buffer.
733 * External Lisp:: Communicating through Emacs with a separate Lisp.
735 Running Debuggers Under Emacs
737 * Starting GUD:: How to start a debugger subprocess.
738 * Debugger Operation:: Connection between the debugger and source buffers.
739 * Commands of GUD:: Key bindings for common commands.
740 * GUD Customization:: Defining your own commands for GUD.
741 * GDB Graphical Interface:: An enhanced mode that uses GDB features to
742 implement a graphical debugging environment through
745 GDB Graphical Interface
747 * GDB User Interface Layout:: Control the number of displayed buffers.
748 * Source Buffers:: Use the mouse in the fringe/margin to
749 control your program.
750 * Breakpoints Buffer:: A breakpoint control panel.
751 * Threads Buffer:: Displays your threads.
752 * Stack Buffer:: Select a frame from the call stack.
753 * Other GDB Buffers:: Input/output, locals, registers,
754 assembler, threads and memory buffers.
755 * Watch Expressions:: Monitor variable values in the speedbar.
756 * Multithreaded Debugging:: Debugging programs with several threads.
758 Maintaining Large Programs
760 * Version Control:: Using version control systems.
761 * Change Log:: Maintaining a change history for your program.
762 * Tags:: Go directly to any function in your program in one
763 command. Tags remembers which file it is in.
764 * EDE:: An integrated development environment for Emacs.
765 * Emerge:: A convenient way of merging two versions of a program.
769 * Introduction to VC:: How version control works in general.
770 * VC Mode Line:: How the mode line shows version control status.
771 * Basic VC Editing:: How to edit a file under version control.
772 * Log Buffer:: Features available in log entry buffers.
773 * Old Revisions:: Examining and comparing old versions.
774 * Secondary VC Commands:: The commands used a little less frequently.
775 * VC Directory Mode:: Listing files managed by version control.
776 * Branches:: Multiple lines of development.
777 * Remote Repositories:: Efficient access to remote CVS servers.
778 * Revision Tags:: Symbolic names for revisions.
779 * Miscellaneous VC:: Various other commands and features of VC.
780 * Customizing VC:: Variables that change VC's behavior.
782 Introduction to Version Control
784 * Why Version Control?:: Understanding the problems it addresses.
785 * Version Control Systems:: Supported version control back-end systems.
786 * VCS Concepts:: Words and concepts related to version control.
787 * VCS Merging:: How file conflicts are handled.
788 * VCS Changesets:: Changesets in version control.
789 * VCS Repositories:: Where version control repositories are stored.
790 * Types of Log File:: The VCS log in contrast to the ChangeLog.
792 Basic Editing under Version Control
794 * VC With A Merging VCS:: Without locking: default mode for CVS.
795 * VC With A Locking VCS:: RCS in its default mode, SCCS, and optionally CVS.
796 * Advanced C-x v v:: Advanced features available with a prefix argument.
798 The Secondary Commands of VC
800 * Registering:: Putting a file under version control.
801 * VC Change Log:: Viewing the VC Change Log.
802 * VC Undo:: Canceling changes before or after check-in.
806 * VC Directory Buffer:: What the buffer looks like and means.
807 * VC Directory Commands:: Commands to use in a VC directory buffer.
809 Multiple Branches of a File
811 * Switching Branches:: How to get to another existing branch.
812 * Creating Branches:: How to start a new branch.
813 * Merging:: Transferring changes between branches.
814 * Multi-User Branching:: Multiple users working at multiple branches
819 * Version Backups:: Keeping local copies of repository versions.
820 * Local Version Control:: Using another version system for local editing.
824 * Making Revision Tags:: The tag facilities.
825 * Revision Tag Caveats:: Things to be careful of when using tags.
827 Miscellaneous Commands and Features of VC
829 * Change Logs and VC:: Generating a change log file from log entries.
830 * Renaming and VC:: A command to rename both the source and master
832 * Version Headers:: Inserting version control headers into working files.
836 * General VC Options:: Options that apply to multiple back ends.
837 * RCS and SCCS:: Options for RCS and SCCS.
838 * CVS Options:: Options for CVS.
842 * Change Log Commands:: Commands for editing change log files.
843 * Format of ChangeLog:: What the change log file looks like.
847 * Tag Syntax:: Tag syntax for various types of code and text files.
848 * Create Tags Table:: Creating a tags table with @code{etags}.
849 * Etags Regexps:: Create arbitrary tags using regular expressions.
850 * Select Tags Table:: How to visit a tags table.
851 * Find Tag:: Commands to find the definition of a specific tag.
852 * Tags Search:: Using a tags table for searching and replacing.
853 * List Tags:: Listing and finding tags defined in a file.
855 Merging Files with Emerge
857 * Overview of Emerge:: How to start Emerge. Basic concepts.
858 * Submodes of Emerge:: Fast mode vs. Edit mode.
859 Skip Prefers mode and Auto Advance mode.
860 * State of Difference:: You do the merge by specifying state A or B
862 * Merge Commands:: Commands for selecting a difference,
863 changing states of differences, etc.
864 * Exiting Emerge:: What to do when you've finished the merge.
865 * Combining in Emerge:: How to keep both alternatives for a difference.
866 * Fine Points of Emerge:: Miscellaneous issues.
870 * Abbrev Concepts:: Fundamentals of defined abbrevs.
871 * Defining Abbrevs:: Defining an abbrev, so it will expand when typed.
872 * Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
873 * Editing Abbrevs:: Viewing or editing the entire list of defined abbrevs.
874 * Saving Abbrevs:: Saving the entire list of abbrevs for another session.
875 * Dynamic Abbrevs:: Abbreviations for words already in the buffer.
876 * Dabbrev Customization:: What is a word, for dynamic abbrevs. Case handling.
881 * Basic Picture:: Basic concepts and simple commands of Picture Mode.
882 * Insert in Picture:: Controlling direction of cursor motion
883 after "self-inserting" characters.
884 * Tabs in Picture:: Various features for tab stops and indentation.
885 * Rectangles in Picture:: Clearing and superimposing rectangles.
890 * Mail Format:: Format of the mail being composed.
891 * Mail Headers:: Details of some standard mail header fields.
892 * Mail Aliases:: Abbreviating and grouping mail addresses.
893 * Mail Commands:: Special commands for editing mail being composed.
894 * Mail Signature:: Adding a signature to every message.
895 * Mail Amusements:: Distracting the NSA; adding fortune messages.
896 * Mail Methods:: Using alternative mail-composition methods.
900 * Mail Sending:: Commands to send the message.
901 * Header Editing:: Commands to move to header fields and edit them.
902 * Citing Mail:: Quoting a message you are replying to.
903 * Mail Misc:: Attachments, spell checking, etc.
905 Reading Mail with Rmail
907 * Rmail Basics:: Basic concepts of Rmail, and simple use.
908 * Rmail Scrolling:: Scrolling through a message.
909 * Rmail Motion:: Moving to another message.
910 * Rmail Deletion:: Deleting and expunging messages.
911 * Rmail Inbox:: How mail gets into the Rmail file.
912 * Rmail Files:: Using multiple Rmail files.
913 * Rmail Output:: Copying message out to files.
914 * Rmail Labels:: Classifying messages by labeling them.
915 * Rmail Attributes:: Certain standard labels, called attributes.
916 * Rmail Reply:: Sending replies to messages you are viewing.
917 * Rmail Summary:: Summaries show brief info on many messages.
918 * Rmail Sorting:: Sorting messages in Rmail.
919 * Rmail Display:: How Rmail displays a message; customization.
920 * Rmail Coding:: How Rmail handles decoding character sets.
921 * Rmail Editing:: Editing message text and headers in Rmail.
922 * Rmail Digest:: Extracting the messages from a digest message.
923 * Rmail Rot13:: Reading messages encoded in the rot13 code.
924 * Movemail:: More details of fetching new mail.
925 * Remote Mailboxes:: Retrieving mail from remote mailboxes.
926 * Other Mailbox Formats:: Retrieving mail from local mailboxes in
931 * Rmail Make Summary:: Making various sorts of summaries.
932 * Rmail Summary Edit:: Manipulating messages from the summary.
934 Dired, the Directory Editor
936 * Dired Enter:: How to invoke Dired.
937 * Dired Navigation:: Special motion commands in the Dired buffer.
938 * Dired Deletion:: Deleting files with Dired.
939 * Flagging Many Files:: Flagging files based on their names.
940 * Dired Visiting:: Other file operations through Dired.
941 * Marks vs Flags:: Flagging for deletion vs marking.
942 * Operating on Files:: How to copy, rename, print, compress, etc.
943 either one file or several files.
944 * Shell Commands in Dired:: Running a shell command on the marked files.
945 * Transforming File Names:: Using patterns to rename multiple files.
946 * Comparison in Dired:: Running `diff' by way of Dired.
947 * Subdirectories in Dired:: Adding subdirectories to the Dired buffer.
948 * Subdir Switches:: Subdirectory switches in Dired.
949 * Subdirectory Motion:: Moving across subdirectories, and up and down.
950 * Hiding Subdirectories:: Making subdirectories visible or invisible.
951 * Dired Updating:: Discarding lines for files of no interest.
952 * Dired and Find:: Using `find' to choose the files for Dired.
953 * Wdired:: Operating on files by editing the Dired buffer.
954 * Image-Dired:: Viewing image thumbnails in Dired.
955 * Misc Dired Features:: Various other features.
957 The Calendar and the Diary
959 * Calendar Motion:: Moving through the calendar; selecting a date.
960 * Scroll Calendar:: Bringing earlier or later months onto the screen.
961 * Counting Days:: How many days are there between two dates?
962 * General Calendar:: Exiting or recomputing the calendar.
963 * Writing Calendar Files:: Writing calendars to files of various formats.
964 * Holidays:: Displaying dates of holidays.
965 * Sunrise/Sunset:: Displaying local times of sunrise and sunset.
966 * Lunar Phases:: Displaying phases of the moon.
967 * Other Calendars:: Converting dates to other calendar systems.
968 * Diary:: Displaying events from your diary.
969 * Appointments:: Reminders when it's time to do something.
970 * Importing Diary:: Converting diary events to/from other formats.
971 * Daylight Saving:: How to specify when daylight saving time is active.
972 * Time Intervals:: Keeping track of time intervals.
973 * Advanced Calendar/Diary Usage:: Advanced Calendar/Diary customization.
975 Movement in the Calendar
977 * Calendar Unit Motion:: Moving by days, weeks, months, and years.
978 * Move to Beginning or End:: Moving to start/end of weeks, months, and years.
979 * Specified Dates:: Moving to the current date or another
982 Conversion To and From Other Calendars
984 * Calendar Systems:: The calendars Emacs understands
985 (aside from Gregorian).
986 * To Other Calendar:: Converting the selected date to various calendars.
987 * From Other Calendar:: Moving to a date specified in another calendar.
988 * Mayan Calendar:: Moving to a date specified in a Mayan calendar.
992 * Displaying the Diary:: Viewing diary entries and associated calendar dates.
993 * Format of Diary File:: Entering events in your diary.
994 * Date Formats:: Various ways you can specify dates.
995 * Adding to Diary:: Commands to create diary entries.
996 * Special Diary Entries:: Anniversaries, blocks of dates, cyclic entries, etc.
998 Customizing the Calendar and Diary
1000 * Calendar Customizing:: Calendar layout and hooks.
1001 * Holiday Customizing:: Defining your own holidays.
1002 * Date Display Format:: Changing the format.
1003 * Time Display Format:: Changing the format.
1004 * Diary Customizing:: Defaults you can set.
1005 * Non-Gregorian Diary:: Diary entries based on other calendars.
1006 * Diary Display:: A choice of ways to display the diary.
1007 * Fancy Diary Display:: Sorting diary entries, using included diary files.
1008 * Sexp Diary Entries:: More flexible diary entries.
1012 * Navigation:: Navigation inside DocView buffers.
1013 * Searching:: Searching inside documents.
1014 * Slicing:: Specifying which part of pages should be displayed.
1015 * Conversion:: Influencing and triggering conversion.
1019 * Buffers of Gnus:: The group, summary, and article buffers.
1020 * Gnus Startup:: What you should know about starting Gnus.
1021 * Summary of Gnus:: A short description of the basic Gnus commands.
1023 Running Shell Commands from Emacs
1025 * Single Shell:: How to run one shell command and return.
1026 * Interactive Shell:: Permanent shell taking input via Emacs.
1027 * Shell Mode:: Special Emacs commands used with permanent shell.
1028 * Shell Prompts:: Two ways to recognize shell prompts.
1029 * Shell History:: Repeating previous commands in a shell buffer.
1030 * Directory Tracking:: Keeping track when the subshell changes directory.
1031 * Shell Options:: Options for customizing Shell mode.
1032 * Terminal emulator:: An Emacs window as a terminal emulator.
1033 * Term Mode:: Special Emacs commands used in Term mode.
1034 * Paging in Term:: Paging in the terminal emulator.
1035 * Remote Host:: Connecting to another computer.
1036 * Serial Terminal:: Connecting to a serial port.
1038 Shell Command History
1040 * Shell Ring:: Fetching commands from the history list.
1041 * Shell History Copying::Moving to a command and then copying it.
1042 * History References:: Expanding @samp{!}-style history references.
1044 Using Emacs as a Server
1046 * Invoking emacsclient:: Connecting to the Emacs server.
1047 * emacsclient Options:: Emacs client startup options.
1049 Printing Hard Copies
1051 * PostScript:: Printing buffers or regions as PostScript.
1052 * PostScript Variables:: Customizing the PostScript printing commands.
1053 * Printing Package:: An optional advanced printing interface.
1055 Hyperlinking and Navigation Features
1057 * Browse-URL:: Following URLs.
1058 * Goto Address mode:: Activating URLs.
1059 * FFAP:: Finding files etc. at point.
1063 * Easy Customization:: Convenient way to browse and change settings.
1064 * Variables:: Many Emacs commands examine Emacs variables
1065 to decide what to do; by setting variables,
1066 you can control their functioning.
1067 * Key Bindings:: Keymaps say what command each key runs.
1068 By changing them, you can "redefine" keys.
1069 * Init File:: How to write common customizations in the
1072 Easy Customization Interface
1074 * Customization Groups:: How settings are classified in a structure.
1075 * Browsing Custom:: Browsing and searching for settings.
1076 * Changing a Variable:: How to edit an option's value and set the option.
1077 * Saving Customizations:: Specifying the file for saving customizations.
1078 * Face Customization:: How to edit the attributes of a face.
1079 * Specific Customization:: Making a customization buffer for specific
1080 variables, faces, or groups.
1081 * Custom Themes:: How to define collections of customized options
1082 that can be loaded and unloaded together.
1086 * Examining:: Examining or setting one variable's value.
1087 * Hooks:: Hook variables let you specify programs for parts
1088 of Emacs to run on particular occasions.
1089 * Locals:: Per-buffer values of variables.
1090 * File Variables:: How files can specify variable values.
1091 * Directory Variables:: How variable values can be specified by directory.
1093 Local Variables in Files
1095 * Specifying File Variables:: Specifying file local variables.
1096 * Safe File Variables:: Making sure file local variables are safe.
1098 Customizing Key Bindings
1100 * Keymaps:: Generalities. The global keymap.
1101 * Prefix Keymaps:: Keymaps for prefix keys.
1102 * Local Keymaps:: Major and minor modes have their own keymaps.
1103 * Minibuffer Maps:: The minibuffer uses its own local keymaps.
1104 * Rebinding:: How to redefine one key's meaning conveniently.
1105 * Init Rebinding:: Rebinding keys with your init file, @file{.emacs}.
1106 * Modifier Keys:: Using modifier keys in key bindings.
1107 * Function Keys:: Rebinding terminal function keys.
1108 * Named ASCII Chars:: Distinguishing @key{TAB} from @kbd{C-i}, and so on.
1109 * Mouse Buttons:: Rebinding mouse buttons in Emacs.
1110 * Disabling:: Disabling a command means confirmation is required
1111 before it can be executed. This is done to protect
1112 beginners from surprises.
1114 The Init File, @file{~/.emacs}
1116 * Init Syntax:: Syntax of constants in Emacs Lisp.
1117 * Init Examples:: How to do some things with an init file.
1118 * Terminal Init:: Each terminal type can have an init file.
1119 * Find Init:: How Emacs finds the init file.
1120 * Init Non-ASCII:: Using non-@acronym{ASCII} characters in an init file.
1122 Dealing with Emacs Trouble
1124 * DEL Does Not Delete:: What to do if @key{DEL} doesn't delete.
1125 * Stuck Recursive:: `[...]' in mode line around the parentheses.
1126 * Screen Garbled:: Garbage on the screen.
1127 * Text Garbled:: Garbage in the text.
1128 * Memory Full:: How to cope when you run out of memory.
1129 * After a Crash:: Recovering editing in an Emacs session that crashed.
1130 * Emergency Escape:: Emergency escape---
1131 What to do if Emacs stops responding.
1132 * Total Frustration:: When you are at your wits' end.
1136 * Known Problems:: How to read about known problems and bugs.
1137 * Bug Criteria:: Have you really found a bug?
1138 * Understanding Bug Reporting:: How to report a bug effectively.
1139 * Checklist:: Steps to follow for a good bug report.
1140 * Sending Patches:: How to send a patch for GNU Emacs.
1142 Command Line Arguments for Emacs Invocation
1144 * Action Arguments:: Arguments to visit files, load libraries,
1146 * Initial Options:: Arguments that take effect while starting Emacs.
1147 * Command Example:: Examples of using command line arguments.
1148 * Resume Arguments:: Specifying arguments when you resume a running Emacs.
1149 * Environment:: Environment variables that Emacs uses.
1150 * Display X:: Changing the default display and using remote login.
1151 * Font X:: Choosing a font for text, under X.
1152 * Colors:: Choosing display colors.
1153 * Window Size X:: Start-up window size, under X.
1154 * Borders X:: Internal and external borders, under X.
1155 * Title X:: Specifying the initial frame's title.
1156 * Icons X:: Choosing what sort of icon to use, under X.
1157 * Misc X:: Other display options.
1159 Environment Variables
1161 * General Variables:: Environment variables that all versions of Emacs use.
1162 * Misc Variables:: Certain system-specific variables.
1163 * MS-Windows Registry:: An alternative to the environment on MS-Windows.
1165 X Options and Resources
1167 * Resources:: Using X resources with Emacs (in general).
1168 * Table of Resources:: Table of specific X resources that affect Emacs.
1169 * Face Resources:: X resources for customizing faces.
1170 * Lucid Resources:: X resources for Lucid menus.
1171 * LessTif Resources:: X resources for LessTif and Motif menus.
1172 * GTK resources:: Resources for GTK widgets.
1176 * GTK widget names:: How widgets in GTK are named in general.
1177 * GTK Names in Emacs:: GTK widget names in Emacs.
1178 * GTK styles:: What can be customized in a GTK widget.
1180 Emacs and Mac OS / GNUstep
1182 * Mac / GNUstep Basics:: Basic Emacs usage under GNUstep or Mac OS.
1183 * Mac / GNUstep Customization:: Customizations under GNUstep or Mac OS.
1184 * Mac / GNUstep Events:: How window system events are handled.
1185 * GNUstep Support:: Details on status of GNUstep support.
1187 Emacs and Microsoft Windows/MS-DOS
1189 * Windows Startup:: How to start Emacs on Windows.
1190 * Text and Binary:: Text files use CRLF to terminate lines.
1191 * Windows Files:: File-name conventions on Windows.
1192 * ls in Lisp:: Emulation of @code{ls} for Dired.
1193 * Windows HOME:: Where Emacs looks for your @file{.emacs}.
1194 * Windows Keyboard:: Windows-specific keyboard features.
1195 * Windows Mouse:: Windows-specific mouse features.
1196 * Windows Processes:: Running subprocesses on Windows.
1197 * Windows Printing:: How to specify the printer on MS-Windows.
1198 * Windows Fonts:: Specifying fonts on MS-Windows.
1199 * Windows Misc:: Miscellaneous Windows features.
1200 * MS-DOS:: Using Emacs on MS-DOS (otherwise known as @dfn{MS-DOG}).
1204 * MS-DOS Keyboard:: Keyboard conventions on MS-DOS.
1205 * MS-DOS Mouse:: Mouse conventions on MS-DOS.
1206 * MS-DOS Display:: Fonts, frames and display size on MS-DOS.
1207 * MS-DOS File Names:: File name conventions on MS-DOS.
1208 * MS-DOS Printing:: Printing specifics on MS-DOS.
1209 * MS-DOS and MULE:: Support for internationalization on MS-DOS.
1210 * MS-DOS Processes:: Running subprocesses on MS-DOS.
1218 This manual documents the use and simple customization of the Emacs
1219 editor. Simple Emacs customizations do not require you to be a
1220 programmer, but if you are not interested in customizing, you can
1221 ignore the customization hints.
1223 This is primarily a reference manual, but can also be used as a
1224 primer. If you are new to Emacs, we recommend you start with
1225 the integrated, learn-by-doing tutorial, before reading the manual. To
1226 run the tutorial, start Emacs and type @kbd{C-h t}. The tutorial
1227 describes commands, tells you when to try them, and explains the
1230 On first reading, just skim chapters 1 and 2, which describe the
1231 notational conventions of the manual and the general appearance of the
1232 Emacs display screen. Note which questions are answered in these
1233 chapters, so you can refer back later. After reading chapter 4, you
1234 should practice the commands shown there. The next few chapters
1235 describe fundamental techniques and concepts that are used constantly.
1236 You need to understand them thoroughly, so experiment with them
1237 until you are fluent.
1239 Chapters 14 through 19 describe intermediate-level features that are
1240 useful for many kinds of editing. Chapter 20 and following chapters
1241 describe optional but useful features; read those chapters when you
1244 Read the Common Problems chapter if Emacs does not seem to be
1245 working properly. It explains how to cope with several common
1246 problems (@pxref{Lossage}), as well as when and how to report Emacs
1247 bugs (@pxref{Bugs}).
1249 To find the documentation of a particular command, look in the index.
1250 Keys (character commands) and command names have separate indexes.
1251 There is also a glossary, with a cross reference for each term.
1253 This manual is available as a printed book and also as an Info file.
1254 The Info file is for use with the Info program, which is the principal
1255 means of accessing on-line documentation in the GNU system. Both the
1256 Emacs Info file and an Info reader are included with GNU Emacs. The
1257 Info file and the printed book contain substantially the same text and
1258 are generated from the same source files, which are also distributed
1261 GNU Emacs is a member of the Emacs editor family. There are many
1262 Emacs editors, all sharing common principles of organization. For
1263 information on the underlying philosophy of Emacs and the lessons
1264 learned from its development, see @cite{Emacs, the Extensible,
1265 Customizable Self-Documenting Display Editor}, available from
1266 @url{ftp://publications.ai.mit.edu/ai-publications/pdf/AIM-519A.pdf}.
1268 This edition of the manual is intended for use with GNU Emacs
1269 installed on GNU and Unix systems. GNU Emacs can also be used on
1270 MS-DOS (also called MS-DOG), Microsoft Windows, and Macintosh systems.
1271 Those systems use different file name syntax; in addition
1272 MS-DOS does not support all GNU Emacs features. @xref{Microsoft
1273 Windows}, for information about using Emacs on Windows.
1274 @xref{Mac OS / GNUstep}, for information about using Emacs on
1275 Macintosh (and GNUstep).
1278 @node Distrib, Intro, Top, Top
1279 @unnumbered Distribution
1281 GNU Emacs is @dfn{free software}; this means that everyone is free to
1282 use it and free to redistribute it on certain conditions. GNU Emacs
1283 is not in the public domain; it is copyrighted and there are
1284 restrictions on its distribution, but these restrictions are designed
1285 to permit everything that a good cooperating citizen would want to do.
1286 What is not allowed is to try to prevent others from further sharing
1287 any version of GNU Emacs that they might get from you. The precise
1288 conditions are found in the GNU General Public License that comes with
1289 Emacs and also appears in this manual@footnote{This manual is itself
1290 covered by the GNU Free Documentation License (see the reverse title
1291 page in the printed manual or view the full source for online formats
1292 to see the precise conditions). This license is similar in spirit to
1293 the General Public License, but is more suitable for documentation.
1294 @xref{GNU Free Documentation License}.}. @xref{Copying}.
1296 One way to get a copy of GNU Emacs is from someone else who has it.
1297 You need not ask for our permission to do so, or tell any one else;
1298 just copy it. If you have access to the Internet, you can get the
1299 latest distribution version of GNU Emacs by anonymous FTP; see
1300 @url{http://www.gnu.org/software/emacs} on our website for more
1303 You may also receive GNU Emacs when you buy a computer. Computer
1304 manufacturers are free to distribute copies on the same terms that apply to
1305 everyone else. These terms require them to give you the full sources,
1306 including whatever changes they may have made, and to permit you to
1307 redistribute the GNU Emacs received from them under the usual terms of the
1308 General Public License. In other words, the program must be free for you
1309 when you get it, not just free for the manufacturer.
1311 @c FIXME no longer true?
1312 You can also order copies of GNU Emacs from the Free Software
1313 Foundation. This is a convenient and reliable way to get a copy; it is
1314 also a good way to help fund our work. We also sell hardcopy versions
1315 of this manual and @cite{An Introduction to Programming in Emacs Lisp},
1316 by Robert J. Chassell. You can visit our online store at
1317 @url{http://shop.fsf.org/}. For further information,
1321 Free Software Foundation
1322 51 Franklin Street, Fifth Floor
1323 Boston, MA 02110-1301
1327 The income from sales goes to support the foundation's purpose: the
1328 development of new free software, and improvements to our existing
1329 programs including GNU Emacs.
1331 @c FIXME you can't order a CD any more.
1332 If you find GNU Emacs useful, please @strong{send a donation} to the
1333 Free Software Foundation to support our work. Donations to the Free
1334 Software Foundation are tax deductible in the US. If you use GNU Emacs
1335 at your workplace, please suggest that the company make a donation. If
1336 company policy is unsympathetic to the idea of donating to charity, you
1337 might instead suggest ordering a CD-ROM from the Foundation
1338 occasionally, or subscribing to periodic updates.
1341 @node Acknowledgments, Intro, Distrib, Top
1342 @unnumberedsec Acknowledgments
1344 Contributors to GNU Emacs include Jari Aalto, Per Abrahamsen, Tomas
1345 Abrahamsson, Jay K.@: Adams, Michael Albinus, Nagy Andras, Ralf Angeli,
1346 Joe Arceneaux, Miles Bader, David Bakhash, Juanma Barranquero, Eli
1347 Barzilay, Thomas Baumann, Steven L.@: Baur, Jay Belanger, Alexander L.@:
1348 Belikoff, Boaz Ben-Zvi, Karl Berry, Anna M.@: Bigatti, Ray Blaak, Jim
1349 Blandy, Johan Bockgård, Jan Böcker, Lennart Borgman, Per Bothner,
1350 Terrence Brannon, Frank Bresz, Peter Breton, Emmanuel Briot, Kevin
1351 Broadey, Vincent Broman, David M.@: Brown, Georges Brun-Cottan, Joe
1352 Buehler, W@l{}odek Bzyl, Bill Carpenter, Per Cederqvist, Hans Chalupsky,
1353 Chong Yidong, Chris Chase, Bob Chassell, Andrew Choi, Sacha Chua, James
1354 Clark, Mike Clarkson, Glynn Clements, Daniel Colascione, Andrew Csillag,
1355 Baoqiu Cui, Doug Cutting, Mathias Dahl, Julien Danjou, Satyaki Das,
1356 Vivek Dasmohapatra, Michael DeCorte, Gary Delp, Matthieu Devin, Eri
1357 Ding, Jan Djärv, Carsten Dominik, Scott Draves, Benjamin Drieu,
1358 Viktor Dukhovni, Dmitry Dzhus, John Eaton, Rolf Ebert, Paul Eggert,
1359 Stephen Eglen, Torbjörn Einarsson, Tsugutomo Enami, Hans Henrik
1360 Eriksen, Michael Ernst, Ata Etemadi, Frederick Farnbach, Oscar
1361 Figueiredo, Fred Fish, Karl Fogel, Gary Foster, Romain Francoise, Noah
1362 Friedman, Andreas Fuchs, Hallvard Furuseth, Keith Gabryelski, Peter S.@:
1363 Galbraith, Kevin Gallagher, Kevin Gallo, Juan León Lahoz
1364 García, Howard Gayle, Daniel German, Stephen Gildea,
1365 Julien Gilles, David Gillespie, Bob Glickstein, Deepak Goel, Boris
1366 Goldowsky, Michelangelo Grigni, Odd Gripenstam, Kai Großjohann,
1367 Michael Gschwind, Bastien Guerry, Henry Guillaume, Doug Gwyn, Ken'ichi
1368 Handa, Lars Hansen, Chris Hanson, K. Shane Hartman, John Heidemann, Jon
1369 K.@: Hellan, Jesper Harder, Magnus Henoch, Markus Heritsch, Karl Heuer,
1370 Manabu Higashida, Anders Holst, Jeffrey C.@: Honig, Tassilo Horn, Kurt
1371 Hornik, Tom Houlder, Joakim Hove, Denis Howe, Lars Ingebrigtsen, Andrew
1372 Innes, Seiichiro Inoue, Philip Jackson, Pavel Janik, Paul Jarc, Ulf
1373 Jasper, Michael K. Johnson, Kyle Jones, Terry Jones, Simon Josefsson,
1374 Arne Jørgensen, Tomoji Kagatani, Brewster Kahle, Tokuya Kameshima,
1375 Lute Kamstra, David Kastrup, David Kaufman, Henry Kautz, Taichi
1376 Kawabata, Howard Kaye, Michael Kifer, Richard King, Peter Kleiweg, Karel
1377 Klí@v{c}, Shuhei Kobayashi, Pavel Kobiakov, Larry K.@:
1378 Kolodney, David M.@: Koppelman, Koseki Yoshinori, Robert Krawitz,
1379 Sebastian Kremer, Ryszard Kubiak, David Kågedal, Daniel LaLiberte,
1380 Karl Landstrom, Mario Lang, Aaron Larson, James R.@: Larus, Vinicius
1381 Jose Latorre, Werner Lemberg, Frederic Lepied, Peter Liljenberg, Lars
1382 Lindberg, Chris Lindblad, Anders Lindgren, Thomas Link, Juri Linkov,
1383 Francis Litterio, Emilio C. Lopes, Károly L@H{o}rentey, Dave Love,
1384 Sascha Lüdecke, Eric Ludlam, Alan Mackenzie, Christopher J.@:
1385 Madsen, Neil M.@: Mager, Ken Manheimer, Bill Mann, Brian Marick, Simon
1386 Marshall, Bengt Martensson, Charlie Martin, Thomas May, Roland McGrath,
1387 Will Mengarini, David Megginson, Ben A. Mesander, Wayne Mesard, Brad
1388 Miller, Lawrence Mitchell, Richard Mlynarik, Gerd Moellmann, Stefan
1389 Monnier, Morioka Tomohiko, Keith Moore, Jan Moringen, Glenn Morris,
1390 Diane Murray, Sen Nagata, Erik Naggum, Thomas Neumann, Thien-Thi Nguyen,
1391 Mike Newton, Jurgen Nickelsen, Dan Nicolaescu, Hrvoje Niksic, Jeff
1392 Norden, Andrew Norman, Christian Ohler, Alexandre Oliva, Bob Olson,
1393 Michael Olson, Takaaki Ota, Pieter E.@: J.@: Pareit, Ross Patterson,
1394 David Pearson, Jeff Peck, Damon Anton Permezel, Tom Perrine, William
1395 M.@: Perry, Per Persson, Jens Petersen, Daniel Pfeiffer, Richard L.@:
1396 Pieri, Fred Pierresteguy, Christian Plaunt, David Ponce, Francesco A.@:
1397 Potorti, Michael D. Prange, Mukesh Prasad, Ken Raeburn, Marko Rahamaa,
1398 Ashwin Ram, Eric S. Raymond, Paul Reilly, Edward M. Reingold, Alex
1399 Rezinsky, Rob Riepel, David Reitter, Adrian Robert, Nick Roberts, Roland
1400 B.@: Roberts, John Robinson, Danny Roozendaal, Sebastian Rose, William
1401 Rosenblatt, Guillermo J.@: Rozas, Martin Rudalics, Ivar Rummelhoff,
1402 Jason Rumney, Wolfgang Rupprecht, Kevin Ryde, James B. Salem, Masahiko
1403 Sato, Jorgen Schaefer, Holger Schauer, William Schelter, Ralph
1404 Schleicher, Gregor Schmid, Michael Schmidt, Ronald S. Schnell, Philippe
1405 Schnoebelen, Jan Schormann, Alex Schroeder, Stephen Schoef, Raymond
1406 Scholz, Eric Schulte, Andreas Schwab, Randal Schwartz, Oliver Seidel,
1407 Manuel Serrano, Paul Sexton, Hovav Shacham, Stanislav Shalunov, Marc
1408 Shapiro, Richard Sharman, Olin Shivers, Espen Skoglund, Rick Sladkey,
1409 Lynn Slater, Chris Smith, David Smith, Paul D.@: Smith, William
1410 Sommerfeld, Andre Spiegel, Michael Staats, Ulf Stegemann, Reiner Steib,
1411 Sam Steingold, Ake Stenhoff, Peter Stephenson, Ken Stevens, Andy Stewart,
1412 Jonathan Stigelman, Martin Stjernholm, Kim F.@: Storm, Steve Strassman,
1413 Olaf Sylvester, Naoto Takahashi, Steven Tamm, Jean-Philippe Theberge,
1414 Jens T.@: Berger Thielemann, Spencer Thomas, Jim Thompson, Luc
1415 Teirlinck, David O'Toole, Tom Tromey, Enami Tsugutomo, Eli Tziperman,
1416 Daiki Ueno, Masanobu Umeda, Rajesh Vaidheeswarran, Neil W.@: Van Dyke,
1417 Didier Verna, Joakim Verona, Ulrik Vieth, Geoffrey Voelker, Johan
1418 Vromans, Inge Wallin, John Paul Wallington, Colin Walters, Barry Warsaw,
1419 Morten Welinder, Joseph Brian Wells, Rodney Whitby, John Wiegley, Ed
1420 Wilkinson, Mike Williams, Bill Wohler, Steven A. Wood, Dale R.@: Worley,
1421 Francis J.@: Wright, Felix S. T. Wu, Tom Wurgler, Katsumi Yamaoka,
1422 Yamamoto Mitsuharu, Masatake Yamato, Jonathan Yavner, Ryan Yeske, Ilya
1423 Zakharevich, Milan Zamazal, Victor Zandy, Eli Zaretskii, Jamie Zawinski,
1424 Shenghuo Zhu, Piotr Zielinski, Ian T.@: Zimmermann, Reto Zimmermann,
1425 Neal Ziring, Teodor Zlatanov, and Detlev Zundel.
1428 @node Intro, Glossary, Distrib, Top
1429 @unnumbered Introduction
1431 You are reading about GNU Emacs, the GNU incarnation of the
1432 advanced, self-documenting, customizable, extensible editor Emacs.
1433 (The `G' in `GNU' is not silent.)
1435 We call Emacs @dfn{advanced} because it can do much more than simple
1436 insertion and deletion of text. It can control subprocesses, indent
1437 programs automatically, show multiple files at once, and more.
1438 Emacs editing commands operate in terms of characters, words, lines,
1439 sentences, paragraphs, and pages, as well as expressions and comments
1440 in various programming languages.
1442 @dfn{Self-documenting} means that at any time you can use special
1443 commands, known as @dfn{help commands}, to find out what your options
1444 are, or to find out what any command does, or to find all the
1445 commands that pertain to a given topic. @xref{Help}.
1447 @dfn{Customizable} means that you can easily alter the behavior of
1448 Emacs commands in simple ways. For instance, if you use a programming
1449 language in which comments start with @samp{<**} and end with
1450 @samp{**>}, you can tell the Emacs comment manipulation commands to
1451 use those strings (@pxref{Comments}). To take another example, you
1452 can rebind the basic cursor motion commands (up, down, left and right)
1453 to any keys on the keyboard that you find comfortable.
1454 @xref{Customization}.
1456 @dfn{Extensible} means that you can go beyond simple customization
1457 and create entirely new commands. New commands are simply programs
1458 written in the Lisp language, which are run by Emacs's own Lisp
1459 interpreter. Existing commands can even be redefined in the middle of
1460 an editing session, without having to restart Emacs. Most of the
1461 editing commands in Emacs are written in Lisp; the few exceptions
1462 could have been written in Lisp but use C instead for efficiency.
1463 Writing an extension is programming, but non-programmers can use it
1464 afterwards. @xref{Top, Emacs Lisp Intro, Preface, eintr, An
1465 Introduction to Programming in Emacs Lisp}, if you want to learn Emacs
1468 @include screen.texi
1469 @include commands.texi
1470 @include entering.texi
1476 @include killing.texi
1478 @include display.texi
1479 @include search.texi
1481 @include kmacro.texi
1482 @c Includes arevert-xtra.
1484 @include buffers.texi
1485 @include windows.texi
1486 @include frames.texi
1489 @include indent.texi
1491 @c Includes fortran-xtra.
1492 @include programs.texi
1493 @include building.texi
1494 @c Includes vc1-xtra, emerge-xtra.
1495 @include maintaining.texi
1496 @include abbrevs.texi
1498 @include picture-xtra.texi
1500 @include sending.texi
1502 @c Includes dired-xtra.
1504 @c Includes cal-xtra.
1505 @include calendar.texi
1507 @include custom.texi
1508 @include trouble.texi
1510 @node Copying, GNU Free Documentation License, Service, Top
1511 @appendix GNU GENERAL PUBLIC LICENSE
1514 @node GNU Free Documentation License, Emacs Invocation, Copying, Top
1515 @appendix GNU Free Documentation License
1516 @include doclicense.texi
1518 @include cmdargs.texi
1519 @include xresources.texi
1523 @c Includes msdog-xtra.
1526 @include glossary.texi
1531 @c The Option Index is produced only in the on-line version,
1532 @c because the index entries related to command-line options
1533 @c tend to point to the same pages and all begin with a dash.
1534 @c This, and the need to keep the node links consistent, are
1535 @c the reasons for the funky @iftex/@ifnottex dance below.
1536 @c The Option Index is _not_ before Key Index, because that
1537 @c would require changes in the glossary.texi's @node line.
1538 @c It is not after Concept Index for similar reasons.
1541 @node Key Index, Command Index, Glossary, Top
1542 @unnumbered Key (Character) Index
1547 @node Key Index, Option Index, Glossary, Top
1548 @unnumbered Key (Character) Index
1551 @node Option Index, Command Index, Key Index, Top
1552 @unnumbered Command-Line Options Index
1555 @node Command Index, Variable Index, Option Index, Top
1556 @unnumbered Command and Function Index
1561 @node Command Index, Variable Index, Key Index, Top
1562 @unnumbered Command and Function Index
1566 @node Variable Index, Concept Index, Command Index, Top
1567 @unnumbered Variable Index
1570 @node Concept Index, Acknowledgments, Variable Index, Top
1571 @unnumbered Concept Index