1 \input texinfo @c -*- coding: utf-8 -*-
3 @setfilename ../../info/emacs.info
4 @settitle GNU Emacs Manual
7 @c The edition number appears in more than one place in this file
8 @c I don't really know what it means...
9 @c For example, it has said "Sixteenth" since sometime in the Emacs 22
10 @c series, all through 23, and into 24. So it is not very useful IMO,
11 @c and offers nothing that EMACSVER does not. I guess it relates
12 @c mainly to the published book sold by the FSF. Hence no longer
13 @c bother including it except iftex. Really, I think it should not be
14 @c here at all (since anyone can make a pdf version), but should just
15 @c be something added by the FSF during the publishing process.
16 @c Also, the lispref uses a float (3.0), whereas this uses an ordinal,
17 @c so the format is not even consistent.
18 @set EDITION Seventeenth
19 @include emacsver.texi
23 This is the @value{EDITION} edition of the @cite{GNU Emacs Manual},@*
26 This is the @cite{GNU Emacs Manual},
28 updated for Emacs version @value{EMACSVER}.
30 Copyright @copyright{} 1985--1987, 1993--2017 Free Software Foundation, Inc.
33 Permission is granted to copy, distribute and/or modify this document
34 under the terms of the GNU Free Documentation License, Version 1.3 or
35 any later version published by the Free Software Foundation; with the
36 Invariant Sections being ``The GNU Manifesto,'' ``Distribution'' and
37 ``GNU GENERAL PUBLIC LICENSE,'' with the Front-Cover Texts being ``A GNU
38 Manual,'' and with the Back-Cover Texts as in (a) below. A copy of the
39 license is included in the section entitled ``GNU Free Documentation
42 (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
43 modify this GNU manual. Buying copies from the FSF supports it in
44 developing GNU and promoting software freedom.''
50 * Emacs: (emacs). The extensible self-documenting text editor.
53 @c in general, keep the following line commented out, unless doing a
54 @c copy of this manual that will be published. The manual should go
55 @c onto the distribution in the full, 8.5 x 11" size.
62 @c per rms and peterb, use 10pt fonts for the main text, mostly to
63 @c save on paper cost.
64 @c Do this inside @tex for now, so current makeinfo does not complain.
69 \global\hbadness=6666 % don't worry about not-too-underfull boxes
78 @shorttitlepage GNU Emacs Manual
83 @center @titlefont{GNU Emacs Manual}
85 @center @value{EDITION} Edition, Updated for Emacs Version @value{EMACSVER}.
87 @center Richard Stallman et al.
89 @vskip 0pt plus 1filll
93 Published by the Free Software Foundation @*
94 51 Franklin Street, Fifth Floor @*
95 Boston, MA 02110-1301 USA @*
96 ISBN 978-0-9831592-5-4
99 Cover art by Etienne Suvasa; cover design by Matt Lee.
110 @top The Emacs Editor
112 Emacs is the extensible, customizable, self-documenting real-time
113 display editor. This manual describes how to edit with Emacs and
114 some of the ways to customize it; it corresponds to GNU Emacs version
117 @c See 'manual-html-mono' and 'manual-html-node' in admin/admin.el.
120 The homepage for GNU Emacs is at
121 <a href="/software/emacs/">http://www.gnu.org/software/emacs/</a>.<br>
122 To view this manual in other formats, click
123 <a href="/software/emacs/manual/emacs.html">here</a>.<br>
124 You can also purchase a printed copy from the
125 <a href="http://shop.fsf.org/product/emacs-manual/">FSF store</a>.
130 If you are reading this in Emacs, type @kbd{h} to read a basic
131 introduction to the Info documentation system.
134 For information on extending Emacs, see @ref{Top, Emacs Lisp,, elisp, The
135 Emacs Lisp Reference Manual}.
140 @c Note that the TeX version generates its own TOC, so the ifnottex's
141 @c here are not really necessary.
143 * Distrib:: How to get the latest Emacs distribution.
144 * Intro:: An introduction to Emacs concepts.
146 Important General Concepts
147 * Screen:: How to interpret what you see on the screen.
148 * User Input:: Kinds of input events (characters, buttons,
150 * Keys:: Key sequences: what you type to request one
152 * Commands:: Named functions run by key sequences to do editing.
153 * Entering Emacs:: Starting Emacs from the shell.
154 * Exiting:: Stopping or killing Emacs.
156 Fundamental Editing Commands
157 * Basic:: The most basic editing commands.
158 * Minibuffer:: Entering arguments that are prompted for.
159 * M-x:: Invoking commands by their names.
160 * Help:: Commands for asking Emacs about its commands.
162 Important Text-Changing Commands
163 * Mark:: The mark: how to delimit a region of text.
164 * Killing:: Killing (cutting) and yanking (copying) text.
165 * Registers:: Saving a text string or a location in the buffer.
166 * Display:: Controlling what text is displayed.
167 * Search:: Finding or replacing occurrences of a string.
168 * Fixit:: Commands especially useful for fixing typos.
169 * Keyboard Macros:: Recording a sequence of keystrokes to be replayed.
171 Major Structures of Emacs
172 * Files:: All about handling files.
173 * Buffers:: Multiple buffers; editing several files at once.
174 * Windows:: Viewing multiple pieces of text in one frame.
175 * Frames:: Using multiple windows on your display.
176 * International:: Using non-@acronym{ASCII} character sets.
179 * Modes:: Major and minor modes alter Emacs's basic behavior.
180 * Indentation:: Editing the white space at the beginnings of lines.
181 * Text:: Commands and modes for editing human languages.
182 * Programs:: Commands and modes for editing programs.
183 * Building:: Compiling, running and debugging programs.
184 * Maintaining:: Features for maintaining large programs.
185 * Abbrevs:: Defining text abbreviations to reduce typing.
186 * Dired:: Directory and file manager.
187 * Calendar/Diary:: Calendar and diary facilities.
188 * Sending Mail:: Sending mail in Emacs.
189 * Rmail:: Reading mail in Emacs.
190 * Gnus:: A flexible mail and news reader.
191 * Host Security:: Security issues on a single computer.
192 * Network Security:: Managing the network security.
193 * Document View:: Viewing PDF, PS and DVI files.
194 * EWW:: A web browser in Emacs.
195 * Embedded WebKit Widgets:: Embedding browser widgets in Emacs buffers.
196 * Shell:: Executing shell commands from Emacs.
197 * Emacs Server:: Using Emacs as an editing server.
198 * Printing:: Printing hardcopies of buffers or regions.
199 * Sorting:: Sorting lines, paragraphs or pages within Emacs.
201 * Picture Mode:: Editing pictures made up of text characters.
203 * Editing Binary Files:: Editing binary files with Hexl mode.
204 * Saving Emacs Sessions:: Saving Emacs state from one session to the next.
205 * Recursive Edit:: Performing edits while within another command.
206 * Hyperlinking:: Following links in buffers.
207 * Amusements:: Various games and hacks.
208 * Packages:: Installing additional features.
209 * Customization:: Modifying the behavior of Emacs.
211 Recovery from Problems
212 * Quitting:: Quitting and aborting.
213 * Lossage:: What to do if Emacs is hung or malfunctioning.
214 * Bugs:: How and when to report a bug.
215 * Contributing:: How to contribute improvements to Emacs.
216 * Service:: How to get help for your own Emacs needs.
219 * Copying:: The GNU General Public License gives you permission
220 to redistribute GNU Emacs on certain terms;
221 it also explains that there is no warranty.
222 * GNU Free Documentation License:: The license for this documentation.
223 * Emacs Invocation:: Hairy startup options.
224 * X Resources:: X resources for customizing Emacs.
225 * Antinews:: Information about Emacs version 25.
226 * Mac OS / GNUstep:: Using Emacs under Mac OS and GNUstep.
227 * Microsoft Windows:: Using Emacs on Microsoft Windows and MS-DOS.
228 * Manifesto:: What's GNU? Gnu's Not Unix!
230 * Glossary:: Terms used in this manual.
232 * Acknowledgments:: Major contributors to GNU Emacs.
235 Indexes (each index contains a large menu)
236 * Key Index:: An item for each standard Emacs key sequence.
237 * Option Index:: An item for every command-line option.
238 * Command Index:: An item for each command name.
239 * Variable Index:: An item for each documented variable.
240 * Concept Index:: An item for each concept.
242 @c Do NOT modify the following 3 lines! They must have this form to
243 @c be correctly identified by 'texinfo-multiple-files-update'. In
244 @c particular, the detailed menu header line MUST be identical to the
245 @c value of 'texinfo-master-menu-header'. See texnfo-upd.el.
248 --- The Detailed Node Listing ---
249 ---------------------------------
251 Here are some other nodes which are really subnodes of the ones
252 already listed, mentioned here so you can get to them in one step:
254 The Organization of the Screen
256 * Point:: The place in the text where editing commands operate.
257 * Echo Area:: Short messages appear at the bottom of the screen.
258 * Mode Line:: Interpreting the mode line.
259 * Menu Bar:: How to use the menu bar.
261 Basic Editing Commands
263 * Inserting Text:: Inserting text by simply typing it.
264 * Moving Point:: Moving the cursor to the place where you want to
266 * Erasing:: Deleting and killing text.
267 * Basic Undo:: Undoing recent changes in the text.
268 * Basic Files:: Visiting, creating, and saving files.
269 * Basic Help:: Asking what a character does.
270 * Blank Lines:: Making and deleting blank lines.
271 * Continuation Lines:: How Emacs displays lines too wide for the screen.
272 * Position Info:: What line, row, or column is point on?
273 * Arguments:: Numeric arguments for repeating a command N times.
274 * Repeating:: Repeating the previous command quickly.
278 * Basic Minibuffer:: Basic usage of the minibuffer.
279 * Minibuffer File:: Entering file names with the minibuffer.
280 * Minibuffer Edit:: How to edit in the minibuffer.
281 * Completion:: An abbreviation facility for minibuffer input.
282 * Minibuffer History:: Reusing recent minibuffer arguments.
283 * Repetition:: Re-executing commands that used the minibuffer.
284 * Passwords:: Entering passwords in the echo area.
285 * Yes or No Prompts:: Replying yes or no in the echo area.
289 * Completion Example:: Examples of using completion.
290 * Completion Commands:: A list of completion commands.
291 * Completion Exit:: Completion and minibuffer text submission.
292 * Completion Styles:: How completion matches are chosen.
293 * Completion Options:: Options for completion.
297 * Help Summary:: Brief list of all Help commands.
298 * Key Help:: Asking what a key does in Emacs.
299 * Name Help:: Asking about a command, variable or function name.
300 * Apropos:: Asking what pertains to a given topic.
301 * Help Mode:: Special features of Help mode and Help buffers.
302 * Package Keywords:: Finding Lisp libraries by keywords (topics).
303 * Language Help:: Help relating to international language support.
304 * Misc Help:: Other help commands.
305 * Help Files:: Commands to display auxiliary help files.
306 * Help Echo:: Help on active text and tooltips.
308 The Mark and the Region
310 * Setting Mark:: Commands to set the mark.
311 * Marking Objects:: Commands to put region around textual units.
312 * Using Region:: Summary of ways to operate on contents of the region.
313 * Mark Ring:: Previous mark positions saved so you can go back there.
314 * Global Mark Ring:: Previous mark positions in various buffers.
315 * Shift Selection:: Using shifted cursor motion keys.
316 * Disabled Transient Mark:: Leaving regions unhighlighted by default.
318 Killing and Moving Text
320 * Deletion and Killing:: Commands that remove text.
321 * Yanking:: Commands that insert text.
322 * Cut and Paste:: Clipboard and selections on graphical displays.
323 * Accumulating Text:: Other methods to add text to the buffer.
324 * Rectangles:: Operating on text in rectangular areas.
325 * CUA Bindings:: Using @kbd{C-x}/@kbd{C-c}/@kbd{C-v} to kill and yank.
329 * Deletion:: Commands for deleting small amounts of text and
331 * Killing by Lines:: How to kill entire lines of text at one time.
332 * Other Kill Commands:: Commands to kill large regions of text and
333 syntactic units such as words and sentences.
334 * Kill Options:: Options that affect killing.
338 * Kill Ring:: Where killed text is stored.
339 * Earlier Kills:: Yanking something killed some time ago.
340 * Appending Kills:: Several kills in a row all yank together.
342 Cut and Paste Operations on Graphical Displays
344 * Clipboard:: How Emacs uses the system clipboard.
345 * Primary Selection:: The temporarily selected text selection.
346 * Secondary Selection:: Cutting without altering point and mark.
350 * Position Registers:: Saving positions in registers.
351 * Text Registers:: Saving text in registers.
352 * Rectangle Registers:: Saving rectangles in registers.
353 * Configuration Registers:: Saving window configurations in registers.
354 * Number Registers:: Numbers in registers.
355 * File Registers:: File names in registers.
356 * Keyboard Macro Registers:: Keyboard macros in registers.
357 * Bookmarks:: Bookmarks are like registers, but persistent.
359 Controlling the Display
361 * Scrolling:: Commands to move text up and down in a window.
362 * Recentering:: A scroll command that centers the current line.
363 * Auto Scrolling:: Redisplay scrolls text automatically when needed.
364 * Horizontal Scrolling:: Moving text left and right in a window.
365 * Narrowing:: Restricting display and editing to a portion
367 * View Mode:: Viewing read-only buffers.
368 * Follow Mode:: Follow mode lets two windows scroll as one.
369 * Faces:: How to change the display style using faces.
370 * Colors:: Specifying colors for faces.
371 * Standard Faces:: The main predefined faces.
372 * Text Scale:: Increasing or decreasing text size in a buffer.
373 * Font Lock:: Minor mode for syntactic highlighting using faces.
374 * Highlight Interactively:: Tell Emacs what text to highlight.
375 * Fringes:: Enabling or disabling window fringes.
376 * Displaying Boundaries:: Displaying top and bottom of the buffer.
377 * Useless Whitespace:: Showing possibly spurious trailing whitespace.
378 * Selective Display:: Hiding lines with lots of indentation.
379 * Optional Mode Line:: Optional mode line display features.
380 * Text Display:: How text characters are normally displayed.
381 * Cursor Display:: Features for displaying the cursor.
382 * Line Truncation:: Truncating lines to fit the screen width instead
383 of continuing them to multiple screen lines.
384 * Visual Line Mode:: Word wrap and screen line-based editing.
385 * Display Custom:: Information on variables for customizing display.
387 Searching and Replacement
389 * Incremental Search:: Search happens as you type the string.
390 * Nonincremental Search:: Specify entire string and then search.
391 * Word Search:: Search for sequence of words.
392 * Symbol Search:: Search for a source code symbol.
393 * Regexp Search:: Search for match for a regexp.
394 * Regexps:: Syntax of regular expressions.
395 * Regexp Backslash:: Regular expression constructs starting with `\'.
396 * Regexp Example:: A complex regular expression explained.
397 * Lax Search:: Search ignores some distinctions between
398 similar characters, like letter-case.
399 * Replace:: Search, and replace some or all matches.
400 * Other Repeating Search:: Operating on all matches for some regexp.
401 * Search Customizations:: Various search customizations.
405 * Basic Isearch:: Basic incremental search commands.
406 * Repeat Isearch:: Searching for the same string again.
407 * Isearch Yank:: Commands that grab text into the search string
408 or else edit the search string.
409 * Error in Isearch:: When your string is not found.
410 * Special Isearch:: Special input in incremental search.
411 * Not Exiting Isearch:: Prefix argument and scrolling commands.
412 * Isearch Minibuffer:: Incremental search of the minibuffer history.
416 * Unconditional Replace:: Replacing all matches for a string.
417 * Regexp Replace:: Replacing all matches for a regexp.
418 * Replacement and Lax Matches::
419 Lax searching for text to replace.
420 * Query Replace:: How to use querying.
422 Commands for Fixing Typos
424 * Undo:: The Undo commands.
425 * Transpose:: Exchanging two characters, words, lines, lists...
426 * Fixing Case:: Correcting case of last word entered.
427 * Spelling:: Apply spelling checker to a word, or a whole file.
431 * Basic Keyboard Macro:: Defining and running keyboard macros.
432 * Keyboard Macro Ring:: Where previous keyboard macros are saved.
433 * Keyboard Macro Counter:: Inserting incrementing numbers in macros.
434 * Keyboard Macro Query:: Making keyboard macros do different things each
436 * Save Keyboard Macro:: Giving keyboard macros names; saving them in
438 * Edit Keyboard Macro:: Editing keyboard macros.
439 * Keyboard Macro Step-Edit:: Interactively executing and editing a keyboard
444 * File Names:: How to type and edit file-name arguments.
445 * Visiting:: Visiting a file prepares Emacs to edit the file.
446 * Saving:: Saving makes your changes permanent.
447 * Reverting:: Reverting cancels all the changes not saved.
449 * Autorevert:: Auto Reverting non-file buffers.
451 * Auto Save:: Auto Save periodically protects against loss of data.
452 * File Aliases:: Handling multiple names for one file.
453 * Directories:: Creating, deleting, and listing file directories.
454 * Comparing Files:: Finding where two files differ.
455 * Diff Mode:: Mode for editing file differences.
456 * Copying and Naming:: Copying, naming and renaming files.
457 * Misc File Ops:: Other things you can do on files.
458 * Compressed Files:: Accessing compressed files.
459 * File Archives:: Operating on tar, zip, jar etc. archive files.
460 * Remote Files:: Accessing files on other machines.
461 * Quoted File Names:: Quoting special characters in file names.
462 * File Name Cache:: Completion against a list of files you often use.
463 * File Conveniences:: Convenience Features for Finding Files.
464 * Filesets:: Handling sets of files.
468 * Save Commands:: Commands for saving files.
469 * Backup:: How Emacs saves the old version of your file.
470 * Customize Save:: Customizing the saving of files.
471 * Interlocking:: How Emacs protects against simultaneous editing
472 of one file by two users.
473 * File Shadowing:: Copying files to shadows automatically.
474 * Time Stamps:: Emacs can update time stamps on saved files.
478 * Backup Names:: How backup files are named.
479 * Backup Deletion:: Emacs deletes excess numbered backups.
480 * Backup Copying:: Backups can be made by copying or renaming.
483 Auto Reverting Non-File Buffers
485 * Auto Reverting the Buffer Menu:: Auto Revert of the Buffer Menu.
486 * Auto Reverting Dired:: Auto Revert of Dired buffers.
487 * Supporting additional buffers:: How to add more Auto Revert support.
490 Auto-Saving: Protection Against Disasters
492 * Auto Save Files:: The file where auto-saved changes are
493 actually made until you save the file.
494 * Auto Save Control:: Controlling when and how often to auto-save.
495 * Recover:: Recovering text from auto-save files.
497 Using Multiple Buffers
499 * Select Buffer:: Creating a new buffer or reselecting an old one.
500 * List Buffers:: Getting a list of buffers that exist.
501 * Misc Buffer:: Renaming; changing read-only status; copying text.
502 * Kill Buffer:: Killing buffers you no longer need.
503 * Several Buffers:: How to go through the list of all buffers
504 and operate variously on several of them.
505 * Indirect Buffers:: An indirect buffer shares the text of another buffer.
506 * Buffer Convenience:: Convenience and customization features for
509 Convenience Features and Customization of Buffer Handling
511 * Uniquify:: Making buffer names unique with directory parts.
512 * Icomplete:: Fast minibuffer selection.
513 * Buffer Menus:: Configurable buffer menu.
517 * Basic Window:: Introduction to Emacs windows.
518 * Split Window:: New windows are made by splitting existing windows.
519 * Other Window:: Moving to another window or doing something to it.
520 * Pop Up Window:: Finding a file or buffer in another window.
521 * Change Window:: Deleting windows and changing their sizes.
522 * Displaying Buffers:: How Emacs picks a window for displaying a buffer.
523 * Temporary Displays:: Displaying non-editable buffers.
524 * Window Convenience:: Convenience functions for window handling.
526 Displaying a Buffer in a Window
528 * Window Choice:: How @code{display-buffer} works.
530 Frames and Graphical Displays
532 * Mouse Commands:: Moving, cutting, and pasting, with the mouse.
533 * Word and Line Mouse:: Mouse commands for selecting whole words or lines.
534 * Mouse References:: Using the mouse to select an item from a list.
535 * Menu Mouse Clicks:: Mouse clicks that bring up menus.
536 * Mode Line Mouse:: Mouse clicks on the mode line.
537 * Creating Frames:: Creating additional Emacs frames with various contents.
538 * Frame Commands:: Iconifying, deleting, and switching frames.
539 * Fonts:: Changing the frame font.
540 * Speedbar:: How to make and use a speedbar frame.
541 * Multiple Displays:: How one Emacs instance can talk to several displays.
542 * Frame Parameters:: Changing the colors and other modes of frames.
543 * Scroll Bars:: How to enable and disable scroll bars; how to use them.
544 * Window Dividers:: Window separators that can be dragged with the mouse.
545 * Drag and Drop:: Using drag and drop to open files and insert text.
546 * Menu Bars:: Enabling and disabling the menu bar.
547 * Tool Bars:: Enabling and disabling the tool bar.
548 * Dialog Boxes:: Controlling use of dialog boxes.
549 * Tooltips:: Displaying information at the current mouse position.
550 * Mouse Avoidance:: Preventing the mouse pointer from obscuring text.
551 * Non-Window Terminals:: Multiple frames on terminals that show only one.
552 * Text-Only Mouse:: Using the mouse in text terminals.
554 International Character Set Support
556 * International Chars:: Basic concepts of multibyte characters.
557 * Language Environments:: Setting things up for the language you use.
558 * Input Methods:: Entering text characters not on your keyboard.
559 * Select Input Method:: Specifying your choice of input methods.
560 * Coding Systems:: Character set conversion when you read and
561 write files, and so on.
562 * Recognize Coding:: How Emacs figures out which conversion to use.
563 * Specify Coding:: Specifying a file's coding system explicitly.
564 * Output Coding:: Choosing coding systems for output.
565 * Text Coding:: Choosing conversion to use for file text.
566 * Communication Coding:: Coding systems for interprocess communication.
567 * File Name Coding:: Coding systems for file @emph{names}.
568 * Terminal Coding:: Specifying coding systems for converting
569 terminal input and output.
570 * Fontsets:: Fontsets are collections of fonts
571 that cover the whole spectrum of characters.
572 * Defining Fontsets:: Defining a new fontset.
573 * Modifying Fontsets:: Modifying an existing fontset.
574 * Undisplayable Characters::When characters don't display.
575 * Unibyte Mode:: You can pick one European character set
576 to use without multibyte characters.
577 * Charsets:: How Emacs groups its internal character codes.
578 * Bidirectional Editing:: Support for right-to-left scripts.
580 Major and Minor Modes
582 * Major Modes:: Text mode vs. Lisp mode vs. C mode...
583 * Minor Modes:: Each minor mode is a feature you can turn on
584 independently of any others.
585 * Choosing Modes:: How modes are chosen when visiting files.
589 * Indentation Commands:: More commands for performing indentation.
590 * Tab Stops:: Stop points for indentation in Text modes.
591 * Just Spaces:: Using only space characters for indentation.
592 * Indent Convenience:: Optional indentation features.
594 Commands for Human Languages
596 * Words:: Moving over and killing words.
597 * Sentences:: Moving over and killing sentences.
598 * Paragraphs:: Moving over paragraphs.
599 * Pages:: Moving over pages.
600 * Quotation Marks:: Inserting quotation marks.
601 * Filling:: Filling or justifying text.
602 * Case:: Changing the case of text.
603 * Text Mode:: The major modes for editing text files.
604 * Outline Mode:: Editing outlines.
605 * Org Mode:: The Emacs organizer.
606 * TeX Mode:: Editing TeX and LaTeX files.
607 * HTML Mode:: Editing HTML and SGML files.
608 * Nroff Mode:: Editing input to the nroff formatter.
609 * Enriched Text:: Editing text enriched with fonts, colors, etc.
610 * Text Based Tables:: Commands for editing text-based tables.
611 * Two-Column:: Splitting text columns into separate windows.
615 * Auto Fill:: Auto Fill mode breaks long lines automatically.
616 * Fill Commands:: Commands to refill paragraphs and center lines.
617 * Fill Prefix:: Filling paragraphs that are indented
618 or in a comment, etc.
619 * Adaptive Fill:: How Emacs can determine the fill prefix automatically.
623 * Outline Format:: What the text of an outline looks like.
624 * Outline Motion:: Special commands for moving through outlines.
625 * Outline Visibility:: Commands to control what is visible.
626 * Outline Views:: Outlines and multiple views.
627 * Foldout:: Folding means zooming in on outlines.
631 * Org Organizer:: Managing TODO lists and agendas.
632 * Org Authoring:: Exporting Org buffers to various formats.
636 * TeX Editing:: Special commands for editing in TeX mode.
637 * LaTeX Editing:: Additional commands for LaTeX input files.
638 * TeX Print:: Commands for printing part of a file with TeX.
639 * TeX Misc:: Customization of TeX mode, and related features.
643 * Enriched Mode:: Entering and exiting Enriched mode.
644 * Hard and Soft Newlines:: There are two different kinds of newlines.
645 * Editing Format Info:: How to edit text properties.
646 * Enriched Faces:: Bold, italic, underline, etc.
647 * Enriched Indentation:: Changing the left and right margins.
648 * Enriched Justification:: Centering, setting text flush with the
649 left or right margin, etc.
650 * Enriched Properties:: The ``Special text properties'' submenu.
652 @c The automatic texinfo menu update inserts some duplicate items here
653 @c (faces, colors, indentation, justification, properties), because
654 @c they are listed in two menus. But we already have them above, no
655 @c need to list them twice.
657 Editing Text-based Tables
659 * Table Definition:: What is a text based table.
660 * Table Creation:: How to create a table.
661 * Table Recognition:: How to activate and deactivate tables.
662 * Cell Commands:: Cell-oriented commands in a table.
663 * Cell Justification:: Justifying cell contents.
664 * Table Rows and Columns:: Inserting and deleting rows and columns.
665 * Table Conversion:: Converting between plain text and tables.
666 * Table Misc:: Table miscellany.
670 * Program Modes:: Major modes for editing programs.
671 * Defuns:: Commands to operate on major top-level parts
673 * Program Indent:: Adjusting indentation to show the nesting.
674 * Parentheses:: Commands that operate on parentheses.
675 * Comments:: Inserting, killing, and aligning comments.
676 * Documentation:: Getting documentation of functions you plan to call.
677 * Hideshow:: Displaying blocks selectively.
678 * Symbol Completion:: Completion on symbol names of your program or language.
679 * MixedCase Words:: Dealing with identifiersLikeThis.
680 * Semantic:: Suite of editing tools based on source code parsing.
681 * Misc for Programs:: Other Emacs features useful for editing programs.
682 * C Modes:: Special commands of C, C++, Objective-C,
683 Java, IDL, Pike and AWK modes.
684 * Asm Mode:: Asm mode and its special features.
686 * Fortran:: Fortran mode and its special features.
689 Top-Level Definitions, or Defuns
691 * Left Margin Paren:: An open-paren or similar opening delimiter
692 starts a defun if it is at the left margin.
693 * Moving by Defuns:: Commands to move over or mark a major definition.
694 * Imenu:: Making buffer indexes as menus.
695 * Which Function:: Which Function mode shows which function you are in.
697 Indentation for Programs
699 * Basic Indent:: Indenting a single line.
700 * Multi-line Indent:: Commands to reindent many lines at once.
701 * Lisp Indent:: Specifying how each Lisp function should be indented.
702 * C Indent:: Extra features for indenting C and related modes.
703 * Custom C Indent:: Controlling indentation style for C and related modes.
705 Commands for Editing with Parentheses
707 * Expressions:: Expressions with balanced parentheses.
708 * Moving by Parens:: Commands for moving up, down and across
709 in the structure of parentheses.
710 * Matching:: Insertion of a close-delimiter flashes matching open.
712 Manipulating Comments
714 * Comment Commands:: Inserting, killing, and aligning comments.
715 * Multi-Line Comments:: Commands for adding and editing multi-line comments.
716 * Options for Comments::Customizing the comment features.
720 * Info Lookup:: Looking up library functions and commands in Info files.
721 * Man Page:: Looking up man pages of library functions and commands.
722 * Lisp Doc:: Looking up Emacs Lisp functions, etc.
726 * Motion in C:: Commands to move by C statements, etc.
727 * Electric C:: Colon and other chars can automatically reindent.
728 * Hungry Delete:: A more powerful DEL command.
729 * Other C Commands:: Filling comments, viewing expansion of macros,
730 and other neat features.
735 * Fortran Motion:: Moving point by statements or subprograms.
736 * Fortran Indent:: Indentation commands for Fortran.
737 * Fortran Comments:: Inserting and aligning comments.
738 * Fortran Autofill:: Auto fill support for Fortran.
739 * Fortran Columns:: Measuring columns for valid Fortran.
740 * Fortran Abbrev:: Built-in abbrevs for Fortran keywords.
744 * ForIndent Commands:: Commands for indenting and filling Fortran.
745 * ForIndent Cont:: How continuation lines indent.
746 * ForIndent Num:: How line numbers auto-indent.
747 * ForIndent Conv:: Conventions you must obey to avoid trouble.
748 * ForIndent Vars:: Variables controlling Fortran indent style.
751 Compiling and Testing Programs
753 * Compilation:: Compiling programs in languages other
754 than Lisp (C, Pascal, etc.).
755 * Compilation Mode:: The mode for visiting compiler errors.
756 * Compilation Shell:: Customizing your shell properly
757 for use in the compilation buffer.
758 * Grep Searching:: Searching with grep.
759 * Flymake:: Finding syntax errors on the fly.
760 * Debuggers:: Running symbolic debuggers for non-Lisp programs.
761 * Executing Lisp:: Various modes for editing Lisp programs,
762 with different facilities for running
764 * Lisp Libraries:: How Lisp programs are loaded into Emacs.
765 * Lisp Eval:: Executing a single Lisp expression in Emacs.
766 * Lisp Interaction:: Executing Lisp in an Emacs buffer.
767 * External Lisp:: Communicating through Emacs with a separate Lisp.
769 Running Debuggers Under Emacs
771 * Starting GUD:: How to start a debugger subprocess.
772 * Debugger Operation:: Connection between the debugger and source buffers.
773 * Commands of GUD:: Key bindings for common commands.
774 * GUD Customization:: Defining your own commands for GUD.
775 * GDB Graphical Interface:: An enhanced mode that uses GDB features to
776 implement a graphical debugging environment.
778 GDB Graphical Interface
780 * GDB User Interface Layout:: Control the number of displayed buffers.
781 * Source Buffers:: Use the mouse in the fringe/margin to
782 control your program.
783 * Breakpoints Buffer:: A breakpoint control panel.
784 * Threads Buffer:: Displays your threads.
785 * Stack Buffer:: Select a frame from the call stack.
786 * Other GDB Buffers:: Other buffers for controlling the GDB state.
787 * Watch Expressions:: Monitor variable values in the speedbar.
788 * Multithreaded Debugging:: Debugging programs with several threads.
790 Maintaining Large Programs
792 * Version Control:: Using version control systems.
793 * Change Log:: Maintaining a change history for your program.
794 * Xref:: Find definitions and references of any function,
795 method, struct, macro, @dots{} in your program.
796 * EDE:: An integrated development environment for Emacs.
798 * Emerge:: A convenient way of merging two versions of a program.
803 * Introduction to VC:: How version control works in general.
804 * VC Mode Line:: How the mode line shows version control status.
805 * Basic VC Editing:: How to edit a file under version control.
806 * Log Buffer:: Features available in log entry buffers.
807 * Registering:: Putting a file under version control.
808 * Old Revisions:: Examining and comparing old versions.
809 * VC Change Log:: Viewing the VC Change Log.
810 * VC Undo:: Canceling changes before or after committing.
811 * VC Ignore:: Ignore files under version control system.
812 * VC Directory Mode:: Listing files managed by version control.
813 * Branches:: Multiple lines of development.
815 * Miscellaneous VC:: Various other commands and features of VC.
816 * Customizing VC:: Variables that change VC's behavior.
819 Introduction to Version Control
821 * Why Version Control?:: Understanding the problems it addresses.
822 * Version Control Systems:: Supported version control back-end systems.
823 * VCS Concepts:: Words and concepts related to version control.
824 * VCS Merging:: How file conflicts are handled.
825 * VCS Changesets:: How changes are grouped.
826 * VCS Repositories:: Where version control repositories are stored.
827 * Types of Log File:: The VCS log in contrast to the ChangeLog.
829 Basic Editing under Version Control
831 * VC With A Merging VCS:: Without locking: default mode for CVS.
832 * VC With A Locking VCS:: RCS in its default mode, SCCS, and optionally CVS.
833 * Advanced C-x v v:: Advanced features available with a prefix argument.
837 * VC Directory Buffer:: What the buffer looks like and means.
838 * VC Directory Commands:: Commands to use in a VC directory buffer.
840 Version Control Branches
842 * Switching Branches:: How to get to another existing branch.
843 * Pulling / Pushing:: Receiving/sending changes from/to elsewhere.
844 * Merging:: Transferring changes between branches.
845 * Creating Branches:: How to start a new branch.
848 Miscellaneous Commands and Features of VC
850 * Change Logs and VC:: Generating a change log file from log entries.
851 * VC Delete/Rename:: Deleting and renaming version-controlled files.
852 * Revision Tags:: Symbolic names for revisions.
853 * Version Headers:: Inserting version control headers into working files.
857 * General VC Options:: Options that apply to multiple back ends.
858 * RCS and SCCS:: Options for RCS and SCCS.
859 * CVS Options:: Options for CVS.
864 * Change Log Commands:: Commands for editing change log files.
865 * Format of ChangeLog:: What the change log file looks like.
869 * Find Identifiers:: Commands to find where an identifier is defined
870 or referenced, to list identifiers, etc.
871 * Tags Tables:: Tags table records which file defines a symbol.
872 * Select Tags Table:: How to visit a specific tags table.
876 * Looking Up Identifiers:: Commands to find the definition of a specific tag.
877 * Xref Commands:: Commands in the @file{*xref*} buffer.
878 * Identifier Search:: Searching and replacing identifiers.
879 * List Identifiers:: Listing identifiers and completing on them.
883 * Tag Syntax:: Tag syntax for various types of code and text files.
884 * Create Tags Table:: Creating a tags table with @command{etags}.
885 * Etags Regexps:: Create arbitrary tags using regular expressions.
888 Merging Files with Emerge
890 * Overview of Emerge:: How to start Emerge. Basic concepts.
891 * Submodes of Emerge:: Fast mode vs. Edit mode.
892 Skip Prefers mode and Auto Advance mode.
893 * State of Difference:: You do the merge by specifying state A or B
895 * Merge Commands:: Commands for selecting a difference,
896 changing states of differences, etc.
897 * Exiting Emerge:: What to do when you've finished the merge.
898 * Combining in Emerge:: How to keep both alternatives for a difference.
899 * Fine Points of Emerge:: Miscellaneous issues.
904 * Abbrev Concepts:: Fundamentals of defined abbrevs.
905 * Defining Abbrevs:: Defining an abbrev, so it will expand when typed.
906 * Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
907 * Editing Abbrevs:: Viewing or editing the entire list of defined abbrevs.
908 * Saving Abbrevs:: Saving the entire list of abbrevs for another session.
909 * Dynamic Abbrevs:: Abbreviations for words already in the buffer.
910 * Dabbrev Customization:: What is a word, for dynamic abbrevs. Case handling.
915 * Basic Picture:: Basic concepts and simple commands of Picture Mode.
916 * Insert in Picture:: Controlling direction of cursor motion
917 after self-inserting characters.
918 * Tabs in Picture:: Various features for tab stops and indentation.
919 * Rectangles in Picture:: Clearing and superimposing rectangles.
922 Dired, the Directory Editor
924 * Dired Enter:: How to invoke Dired.
925 * Dired Navigation:: Special motion commands in the Dired buffer.
926 * Dired Deletion:: Deleting files with Dired.
927 * Flagging Many Files:: Flagging files based on their names.
928 * Dired Visiting:: Other file operations through Dired.
929 * Marks vs Flags:: Flagging for deletion vs marking.
930 * Operating on Files:: How to copy, rename, print, compress, etc.
931 either one file or several files.
932 * Shell Commands in Dired:: Running a shell command on the marked files.
933 * Transforming File Names:: Using patterns to rename multiple files.
934 * Comparison in Dired:: Running @code{diff} by way of Dired.
935 * Subdirectories in Dired:: Adding subdirectories to the Dired buffer.
937 * Subdir Switches:: Subdirectory switches in Dired.
939 * Subdirectory Motion:: Moving across subdirectories, and up and down.
940 * Hiding Subdirectories:: Making subdirectories visible or invisible.
941 * Dired Updating:: Discarding lines for files of no interest.
942 * Dired and Find:: Using @code{find} to choose the files for Dired.
943 * Wdired:: Operating on files by editing the Dired buffer.
944 * Image-Dired:: Viewing image thumbnails in Dired.
945 * Misc Dired Features:: Various other features.
947 The Calendar and the Diary
949 * Calendar Motion:: Moving through the calendar; selecting a date.
950 * Scroll Calendar:: Bringing earlier or later months onto the screen.
951 * Counting Days:: How many days are there between two dates?
952 * General Calendar:: Exiting or recomputing the calendar.
953 * Writing Calendar Files:: Writing calendars to files of various formats.
954 * Holidays:: Displaying dates of holidays.
955 * Sunrise/Sunset:: Displaying local times of sunrise and sunset.
956 * Lunar Phases:: Displaying phases of the moon.
957 * Other Calendars:: Converting dates to other calendar systems.
958 * Diary:: Displaying events from your diary.
959 * Appointments:: Reminders when it's time to do something.
960 * Importing Diary:: Converting diary events to/from other formats.
961 * Daylight Saving:: How to specify when daylight saving time is active.
962 * Time Intervals:: Keeping track of time intervals.
964 * Advanced Calendar/Diary Usage:: Advanced Calendar/Diary customization.
967 Movement in the Calendar
969 * Calendar Unit Motion:: Moving by days, weeks, months, and years.
970 * Move to Beginning or End:: Moving to start/end of weeks, months, and years.
971 * Specified Dates:: Moving to the current date or another
974 Conversion To and From Other Calendars
976 * Calendar Systems:: The calendars Emacs understands
977 (aside from Gregorian).
978 * To Other Calendar:: Converting the selected date to various calendars.
979 * From Other Calendar:: Moving to a date specified in another calendar.
983 * Format of Diary File:: Entering events in your diary.
984 * Displaying the Diary:: Viewing diary entries and associated calendar dates.
985 * Date Formats:: Various ways you can specify dates.
986 * Adding to Diary:: Commands to create diary entries.
987 * Special Diary Entries:: Anniversaries, blocks of dates, cyclic entries, etc.
990 More advanced features of the Calendar and Diary
992 * Calendar Customizing:: Calendar layout and hooks.
993 * Holiday Customizing:: Defining your own holidays.
994 * Mayan Calendar:: Moving to a date specified in a Mayan calendar.
995 * Date Display Format:: Changing the format.
996 * Time Display Format:: Changing the format.
997 * Diary Customizing:: Defaults you can set.
998 * Non-Gregorian Diary:: Diary entries based on other calendars.
999 * Diary Display:: A choice of ways to display the diary.
1000 * Fancy Diary Display:: Sorting diary entries, using included diary files.
1001 * Sexp Diary Entries:: More flexible diary entries.
1006 * Mail Format:: Format of a mail message.
1007 * Mail Headers:: Details of some standard mail header fields.
1008 * Mail Aliases:: Abbreviating and grouping mail addresses.
1009 * Mail Commands:: Special commands for editing mail being composed.
1010 * Mail Signature:: Adding a signature to every message.
1011 * Mail Amusements:: Distracting the NSA; adding fortune messages.
1012 * Mail Methods:: Using alternative mail-composition methods.
1016 * Mail Sending:: Commands to send the message.
1017 * Header Editing:: Commands to move to header fields and edit them.
1018 * Citing Mail:: Quoting a message you are replying to.
1019 * Mail Misc:: Attachments, spell checking, etc.
1021 Reading Mail with Rmail
1023 * Rmail Basics:: Basic concepts of Rmail, and simple use.
1024 * Rmail Scrolling:: Scrolling through a message.
1025 * Rmail Motion:: Moving to another message.
1026 * Rmail Deletion:: Deleting and expunging messages.
1027 * Rmail Inbox:: How mail gets into the Rmail file.
1028 * Rmail Files:: Using multiple Rmail files.
1029 * Rmail Output:: Copying message out to files.
1030 * Rmail Labels:: Classifying messages by labeling them.
1031 * Rmail Attributes:: Certain standard labels, called attributes.
1032 * Rmail Reply:: Sending replies to messages you are viewing.
1033 * Rmail Summary:: Summaries show brief info on many messages.
1034 * Rmail Sorting:: Sorting messages in Rmail.
1035 * Rmail Display:: How Rmail displays a message; customization.
1036 * Rmail Coding:: How Rmail handles decoding character sets.
1037 * Rmail Editing:: Editing message text and headers in Rmail.
1038 * Rmail Digest:: Extracting the messages from a digest message.
1039 * Rmail Rot13:: Reading messages encoded in the rot13 code.
1040 * Movemail:: More details of fetching new mail.
1041 * Remote Mailboxes:: Retrieving mail from remote mailboxes.
1042 * Other Mailbox Formats:: Retrieving mail from local mailboxes in
1047 * Rmail Make Summary:: Making various sorts of summaries.
1048 * Rmail Summary Edit:: Manipulating messages from the summary.
1052 * Buffers of Gnus:: The group, summary, and article buffers.
1053 * Gnus Startup:: What you should know about starting Gnus.
1054 * Gnus Group Buffer:: A short description of Gnus group commands.
1055 * Gnus Summary Buffer:: A short description of Gnus summary commands.
1059 * DocView Navigation:: Navigating DocView buffers.
1060 * DocView Searching:: Searching inside documents.
1061 * DocView Slicing:: Specifying which part of a page is displayed.
1062 * DocView Conversion:: Influencing and triggering conversion.
1064 Running Shell Commands from Emacs
1066 * Single Shell:: How to run one shell command and return.
1067 * Interactive Shell:: Permanent shell taking input via Emacs.
1068 * Shell Mode:: Special Emacs commands used with permanent shell.
1069 * Shell Prompts:: Two ways to recognize shell prompts.
1070 * Shell History:: Repeating previous commands in a shell buffer.
1071 * Directory Tracking:: Keeping track when the subshell changes directory.
1072 * Shell Options:: Options for customizing Shell mode.
1073 * Terminal emulator:: An Emacs window as a terminal emulator.
1074 * Term Mode:: Special Emacs commands used in Term mode.
1075 * Remote Host:: Connecting to another computer.
1076 * Serial Terminal:: Connecting to a serial port.
1078 Shell Command History
1080 * Shell Ring:: Fetching commands from the history list.
1081 * Shell History Copying::Moving to a command and then copying it.
1082 * History References:: Expanding @samp{!}-style history references.
1084 Using Emacs as a Server
1086 * TCP Emacs server:: Listening to a TCP socket.
1087 * Invoking emacsclient:: Connecting to the Emacs server.
1088 * emacsclient Options:: Emacs client startup options.
1090 Printing Hard Copies
1092 * PostScript:: Printing buffers or regions as PostScript.
1093 * PostScript Variables:: Customizing the PostScript printing commands.
1094 * Printing Package:: An optional advanced printing interface.
1096 Hyperlinking and Navigation Features
1098 * Browse-URL:: Following URLs.
1099 * Goto Address mode:: Activating URLs.
1100 * FFAP:: Finding files etc. at point.
1104 * Package Menu:: Buffer for viewing and managing packages.
1105 * Package Installation:: Options for package installation.
1106 * Package Files:: Where packages are installed.
1110 * Easy Customization:: Convenient way to browse and change settings.
1111 * Variables:: Many Emacs commands examine Emacs variables
1112 to decide what to do; by setting variables,
1113 you can control their functioning.
1114 * Key Bindings:: The keymaps say what command each key runs.
1115 By changing them, you can redefine keys.
1116 * Init File:: How to write common customizations in the
1117 initialization file.
1119 Easy Customization Interface
1121 * Customization Groups:: How settings are classified.
1122 * Browsing Custom:: Browsing and searching for settings.
1123 * Changing a Variable:: How to edit an option's value and set the option.
1124 * Saving Customizations:: Saving customizations for future Emacs sessions.
1125 * Face Customization:: How to edit the attributes of a face.
1126 * Specific Customization:: Customizing specific settings or groups.
1127 * Custom Themes:: Collections of customization settings.
1128 * Creating Custom Themes:: How to create a new custom theme.
1132 * Examining:: Examining or setting one variable's value.
1133 * Hooks:: Hook variables let you specify programs for parts
1134 of Emacs to run on particular occasions.
1135 * Locals:: Per-buffer values of variables.
1136 * File Variables:: How files can specify variable values.
1137 * Directory Variables:: How variable values can be specified by directory.
1139 Local Variables in Files
1141 * Specifying File Variables:: Specifying file local variables.
1142 * Safe File Variables:: Making sure file local variables are safe.
1144 Customizing Key Bindings
1146 * Keymaps:: Generalities. The global keymap.
1147 * Prefix Keymaps:: Keymaps for prefix keys.
1148 * Local Keymaps:: Major and minor modes have their own keymaps.
1149 * Minibuffer Maps:: The minibuffer uses its own local keymaps.
1150 * Rebinding:: How to redefine one key's meaning conveniently.
1151 * Init Rebinding:: Rebinding keys with your initialization file.
1152 * Modifier Keys:: Using modifier keys in key bindings.
1153 * Function Keys:: Rebinding terminal function keys.
1154 * Named ASCII Chars:: Distinguishing @key{TAB} from @kbd{C-i}, and so on.
1155 * Mouse Buttons:: Rebinding mouse buttons in Emacs.
1156 * Disabling:: Disabling a command means confirmation is required
1157 before it can be executed. This is done to protect
1158 beginners from surprises.
1160 The Emacs Initialization File
1162 * Init Syntax:: Syntax of constants in Emacs Lisp.
1163 * Init Examples:: How to do some things with an init file.
1164 * Terminal Init:: Each terminal type can have an init file.
1165 * Find Init:: How Emacs finds the init file.
1166 * Init Non-ASCII:: Using non-@acronym{ASCII} characters in an init file.
1168 Dealing with Emacs Trouble
1170 * DEL Does Not Delete:: What to do if @key{DEL} doesn't delete.
1171 * Stuck Recursive:: '[...]' in mode line around the parentheses.
1172 * Screen Garbled:: Garbage on the screen.
1173 * Text Garbled:: Garbage in the text.
1174 * Memory Full:: How to cope when you run out of memory.
1175 * Crashing:: What Emacs does when it crashes.
1176 * After a Crash:: Recovering editing in an Emacs session that crashed.
1177 * Emergency Escape:: What to do if Emacs stops responding.
1181 * Known Problems:: How to read about known problems and bugs.
1182 * Bug Criteria:: Have you really found a bug?
1183 * Understanding Bug Reporting:: How to report a bug effectively.
1184 * Checklist:: Steps to follow for a good bug report.
1185 * Sending Patches:: How to send a patch for GNU Emacs.
1187 Contributing to Emacs Development
1189 * Coding Standards:: Gnu Emacs coding standards.
1190 * Copyright Assignment:: Assigning copyright to the FSF.
1192 Command Line Arguments for Emacs Invocation
1194 * Action Arguments:: Arguments to visit files, load libraries,
1196 * Initial Options:: Arguments that take effect while starting Emacs.
1197 * Command Example:: Examples of using command line arguments.
1198 * Environment:: Environment variables that Emacs uses.
1199 * Display X:: Changing the default display and using remote login.
1200 * Font X:: Choosing a font for text, under X.
1201 * Colors X:: Choosing display colors.
1202 * Window Size X:: Start-up window size, under X.
1203 * Borders X:: Internal and outer borders, under X.
1204 * Title X:: Specifying the initial frame's title.
1205 * Icons X:: Choosing what sort of icon to use, under X.
1206 * Misc X:: Other display options.
1208 Environment Variables
1210 * General Variables:: Environment variables that all versions of Emacs use.
1211 * Misc Variables:: Certain system-specific variables.
1212 * MS-Windows Registry:: An alternative to the environment on MS-Windows.
1214 X Options and Resources
1216 * Resources:: Using X resources with Emacs (in general).
1217 * Table of Resources:: Table of specific X resources that affect Emacs.
1218 * Lucid Resources:: X resources for Lucid menus.
1219 * Motif Resources:: X resources for Motif and LessTif menus.
1220 * GTK resources:: Resources for GTK widgets.
1224 * GTK Resource Basics:: Basic usage of GTK+ resources.
1225 * GTK Widget Names:: How GTK+ widgets are named.
1226 * GTK Names in Emacs:: GTK widgets used by Emacs.
1227 * GTK styles:: What can be customized in a GTK widget.
1229 Emacs and Mac OS / GNUstep
1231 * Mac / GNUstep Basics:: Basic Emacs usage under GNUstep or Mac OS.
1232 * Mac / GNUstep Customization:: Customizations under GNUstep or Mac OS.
1233 * Mac / GNUstep Events:: How window system events are handled.
1234 * GNUstep Support:: Details on status of GNUstep support.
1236 Emacs and Microsoft Windows/MS-DOS
1238 * Windows Startup:: How to start Emacs on Windows.
1239 * Text and Binary:: Text files use CRLF to terminate lines.
1240 * Windows Files:: File-name conventions on Windows.
1241 * ls in Lisp:: Emulation of @code{ls} for Dired.
1242 * Windows HOME:: Where Emacs looks for your @file{.emacs} and
1244 * Windows Keyboard:: Windows-specific keyboard features.
1245 * Windows Mouse:: Windows-specific mouse features.
1246 * Windows Processes:: Running subprocesses on Windows.
1247 * Windows Printing:: How to specify the printer on MS-Windows.
1248 * Windows Fonts:: Specifying fonts on MS-Windows.
1249 * Windows Misc:: Miscellaneous Windows features.
1251 * MS-DOS:: Using Emacs on MS-DOS.
1255 * MS-DOS Keyboard:: Keyboard conventions on MS-DOS.
1256 * MS-DOS Mouse:: Mouse conventions on MS-DOS.
1257 * MS-DOS Display:: Fonts, frames and display size on MS-DOS.
1258 * MS-DOS File Names:: File name conventions on MS-DOS.
1259 * MS-DOS Printing:: Printing specifics on MS-DOS.
1260 * MS-DOS and MULE:: Support for internationalization on MS-DOS.
1261 * MS-DOS Processes:: Running subprocesses on MS-DOS.
1270 This manual documents the use and simple customization of the Emacs
1271 editor. Simple Emacs customizations do not require you to be a
1272 programmer, but if you are not interested in customizing, you can
1273 ignore the customization hints.
1275 This is primarily a reference manual, but can also be used as a
1276 primer. If you are new to Emacs, we recommend you start with
1277 the integrated, learn-by-doing tutorial, before reading the manual. To
1278 run the tutorial, start Emacs and type @kbd{C-h t}. The tutorial
1279 describes commands, tells you when to try them, and explains the
1280 results. The tutorial is available in several languages.
1282 On first reading, just skim chapters 1 and 2, which describe the
1283 notational conventions of the manual and the general appearance of the
1284 Emacs display screen. Note which questions are answered in these
1285 chapters, so you can refer back later. After reading chapter 4, you
1286 should practice the commands shown there. The next few chapters
1287 describe fundamental techniques and concepts that are used constantly.
1288 You need to understand them thoroughly, so experiment with them
1289 until you are fluent.
1291 Chapters 14 through 19 describe intermediate-level features that are
1292 useful for many kinds of editing. Chapter 20 and following chapters
1293 describe optional but useful features; read those chapters when you
1296 Read the Common Problems chapter if Emacs does not seem to be
1297 working properly. It explains how to cope with several common
1298 problems (@pxref{Lossage,, Dealing with Emacs Trouble}), as well as
1299 when and how to report Emacs bugs (@pxref{Bugs}).
1301 To find the documentation of a particular command, look in the index.
1302 Keys (character commands) and command names have separate indexes.
1303 There is also a glossary, with a cross reference for each term.
1305 This manual is available as a printed book and also as an Info file.
1306 The Info file is for reading from Emacs itself, or with the Info program.
1307 Info is the principal format for documentation in the GNU system.
1308 The Info file and the printed book contain substantially the same text
1309 and are generated from the same source files, which are also
1310 distributed with GNU Emacs.
1312 GNU Emacs is a member of the Emacs editor family. There are many
1313 Emacs editors, all sharing common principles of organization. For
1314 information on the underlying philosophy of Emacs and the lessons
1315 learned from its development, see @cite{Emacs, the Extensible,
1316 Customizable Self-Documenting Display Editor}, available from
1317 @url{ftp://publications.ai.mit.edu/ai-publications/pdf/AIM-519A.pdf}.
1319 This version of the manual is mainly intended for use with GNU Emacs
1320 installed on GNU and Unix systems. GNU Emacs can also be used on
1321 MS-DOS, Microsoft Windows, and Macintosh systems. The Info file
1322 version of this manual contains some more information about using
1323 Emacs on those systems. Those systems use different file name syntax;
1324 in addition MS-DOS does not support all GNU Emacs features.
1325 @xref{Microsoft Windows}, for information about using Emacs on
1326 Windows. @xref{Mac OS / GNUstep}, for information about using Emacs
1327 on Macintosh (and GNUstep).
1331 @unnumbered Distribution
1333 GNU Emacs is @dfn{free software}; this means that everyone is free to
1334 use it and free to redistribute it under certain conditions. GNU Emacs
1335 is not in the public domain; it is copyrighted and there are
1336 restrictions on its distribution, but these restrictions are designed
1337 to permit everything that a good cooperating citizen would want to do.
1338 What is not allowed is to try to prevent others from further sharing
1339 any version of GNU Emacs that they might get from you. The precise
1340 conditions are found in the GNU General Public License that comes with
1341 Emacs and also appears in this manual@footnote{This manual is itself
1342 covered by the GNU Free Documentation License. This license is
1343 similar in spirit to the General Public License, but is more suitable
1344 for documentation. @xref{GNU Free Documentation License}.}.
1347 One way to get a copy of GNU Emacs is from someone else who has it.
1348 You need not ask for our permission to do so, or tell any one else;
1349 just copy it. If you have access to the Internet, you can get the
1350 latest distribution version of GNU Emacs by anonymous FTP; see
1351 @url{http://www.gnu.org/software/emacs} on our website for more
1354 You may also receive GNU Emacs when you buy a computer. Computer
1355 manufacturers are free to distribute copies on the same terms that apply to
1356 everyone else. These terms require them to give you the full sources,
1357 including whatever changes they may have made, and to permit you to
1358 redistribute the GNU Emacs received from them under the usual terms of the
1359 General Public License. In other words, the program must be free for you
1360 when you get it, not just free for the manufacturer.
1362 If you find GNU Emacs useful, please @strong{send a donation} to the
1363 Free Software Foundation to support our work. Donations to the Free
1364 Software Foundation are tax deductible in the US@. If you use GNU Emacs
1365 at your workplace, please suggest that the company make a donation.
1366 To donate, see @url{https://my.fsf.org/donate/}.
1367 For other ways in which you can help, see
1368 @url{http://www.gnu.org/help/help.html}.
1370 @c The command view-order-manuals uses this anchor.
1371 @anchor{Printed Books}
1372 We also sell hardcopy versions of this manual and @cite{An
1373 Introduction to Programming in Emacs Lisp}, by Robert J. Chassell.
1374 You can visit our online store at @url{http://shop.fsf.org/}.
1375 The income from sales goes to support the foundation's purpose: the
1376 development of new free software, and improvements to our existing
1377 programs including GNU Emacs.
1379 If you need to contact the Free Software Foundation, see
1380 @url{http://www.fsf.org/about/contact/}, or write to
1383 Free Software Foundation
1384 51 Franklin Street, Fifth Floor
1385 Boston, MA 02110-1301
1390 @node Acknowledgments
1391 @unnumberedsec Acknowledgments
1393 @c It's hard to update this fairly.
1394 @c I wonder if it would be better to drop it in favor of AUTHORS?
1395 Contributors to GNU Emacs include Jari Aalto, Per Abrahamsen, Tomas
1396 Abrahamsson, Jay K. Adams, Alon Albert, Michael Albinus, Nagy
1397 Andras, Benjamin Andresen, Ralf Angeli, Dmitry Antipov, Joe Arceneaux, Emil Åström,
1398 Miles Bader, David Bakhash, Juanma Barranquero, Eli Barzilay, Thomas
1399 Baumann, Steven L. Baur, Jay Belanger, Alexander L. Belikoff,
1400 Thomas Bellman, Scott Bender, Boaz Ben-Zvi, Sergey Berezin, Stephen Berman, Karl
1401 Berry, Anna M. Bigatti, Ray Blaak, Martin Blais, Jim Blandy, Johan
1402 Bockgård, Jan Böcker, Joel Boehland, Lennart Borgman, Per Bothner,
1403 Terrence Brannon, Frank Bresz, Peter Breton, Emmanuel Briot, Kevin
1404 Broadey, Vincent Broman, Michael Brouwer, David M. Brown, Stefan Bruda,
1405 Georges Brun-Cottan, Joe Buehler, Scott Byer, Włodek Bzyl,
1406 Bill Carpenter, Per Cederqvist, Hans Chalupsky, Chris Chase, Bob
1407 Chassell, Andrew Choi, Chong Yidong, Sacha Chua, Stewart Clamen, James
1408 Clark, Mike Clarkson, Glynn Clements, Andrew Cohen, Daniel Colascione,
1409 Christoph Conrad, Ludovic Courtès, Andrew Csillag,
1410 Toby Cubitt, Baoqiu Cui, Doug Cutting, Mathias Dahl, Julien Danjou, Satyaki
1411 Das, Vivek Dasmohapatra, Dan Davison, Michael DeCorte, Gary Delp, Nachum
1412 Dershowitz, Dave Detlefs, Matthieu Devin, Christophe de Dinechin, Eri
1413 Ding, Jan Djärv, Lawrence R. Dodd, Carsten Dominik, Scott Draves,
1414 Benjamin Drieu, Viktor Dukhovni, Jacques Duthen, Dmitry Dzhus, John
1415 Eaton, Rolf Ebert, Carl Edman, David Edmondson, Paul Eggert, Stephen
1416 Eglen, Christian Egli, Torbjörn Einarsson, Tsugutomo Enami, David
1417 Engster, Hans Henrik Eriksen, Michael Ernst, Ata Etemadi, Frederick
1418 Farnbach, Oscar Figueiredo, Fred Fish, Steve Fisk, Karl Fogel, Gary
1419 Foster, Eric S. Fraga, Romain Francoise, Noah Friedman, Andreas
1420 Fuchs, Shigeru Fukaya, Xue Fuqiao, Hallvard Furuseth, Keith Gabryelski, Peter S.
1421 Galbraith, Kevin Gallagher, Fabián E. Gallina, Kevin Gallo, Juan León Lahoz García,
1422 Howard Gayle, Daniel German, Stephen Gildea, Julien Gilles, David
1423 Gillespie, Bob Glickstein, Deepak Goel, David De La Harpe Golden, Boris
1424 Goldowsky, David Goodger, Chris Gray, Kevin Greiner, Michelangelo Grigni, Odd
1425 Gripenstam, Kai Großjohann, Michael Gschwind, Bastien Guerry, Henry
1426 Guillaume, Dmitry Gutov, Doug Gwyn, Bruno Haible, Ken'ichi Handa, Lars Hansen, Chris
1427 Hanson, Jesper Harder, Alexandru Harsanyi, K. Shane Hartman, John
1428 Heidemann, Jon K. Hellan, Magnus Henoch, Markus Heritsch, Dirk
1429 Herrmann, Karl Heuer, Manabu Higashida, Konrad Hinsen, Anders Holst,
1430 Jeffrey C. Honig, Tassilo Horn, Kurt Hornik, Tom Houlder, Joakim
1431 Hove, Denis Howe, Lars Ingebrigtsen, Andrew Innes, Seiichiro Inoue,
1432 Philip Jackson, Martyn Jago, Pavel Janik, Paul Jarc, Ulf Jasper,
1433 Thorsten Jolitz, Michael K. Johnson, Kyle Jones, Terry Jones, Simon
1434 Josefsson, Alexandre Julliard, Arne Jørgensen, Tomoji Kagatani,
1435 Brewster Kahle, Tokuya Kameshima, Lute Kamstra, Ivan Kanis, David
1436 Kastrup, David Kaufman, Henry Kautz, Taichi Kawabata, Taro Kawagishi,
1437 Howard Kaye, Michael Kifer, Richard King, Peter Kleiweg, Karel
1438 Klíč, Shuhei Kobayashi, Pavel Kobyakov, Larry K. Kolodney, David
1439 M. Koppelman, Koseki Yoshinori, Robert Krawitz, Sebastian Kremer,
1440 Ryszard Kubiak, Igor Kuzmin, David Kågedal, Daniel LaLiberte, Karl
1441 Landstrom, Mario Lang, Aaron Larson, James R. Larus, Vinicius Jose
1442 Latorre, Werner Lemberg, Frederic Lepied, Peter Liljenberg, Christian
1443 Limpach, Lars Lindberg, Chris Lindblad, Anders Lindgren, Thomas Link,
1444 Juri Linkov, Francis Litterio, Sergey Litvinov, Leo Liu, Emilio C. Lopes,
1445 Martin Lorentzon, Dave Love, Eric Ludlam, Károly Lőrentey, Sascha
1446 Lüdecke, Greg McGary, Roland McGrath, Michael McNamara, Alan Mackenzie,
1447 Christopher J. Madsen, Neil M. Mager, Ken Manheimer, Bill Mann,
1448 Brian Marick, Simon Marshall, Bengt Martensson, Charlie Martin,
1449 Yukihiro Matsumoto, Tomohiro Matsuyama, David Maus, Thomas May, Will Mengarini, David
1450 Megginson, Stefan Merten, Ben A. Mesander, Wayne Mesard, Brad
1451 Miller, Lawrence Mitchell, Richard Mlynarik, Gerd Möllmann, Dani Moncayo, Stefan
1452 Monnier, Keith Moore, Jan Moringen, Morioka Tomohiko, Glenn Morris,
1453 Don Morrison, Diane Murray, Riccardo Murri, Sen Nagata, Erik Naggum,
1454 Gergely Nagy, Nobuyoshi Nakada, Thomas Neumann, Mike Newton, Thien-Thi Nguyen,
1455 Jurgen Nickelsen, Dan Nicolaescu, Hrvoje Nikšić, Jeff Norden,
1456 Andrew Norman, Theresa O'Connor, Kentaro Ohkouchi, Christian Ohler,
1457 Kenichi Okada, Alexandre Oliva, Bob Olson, Michael Olson, Takaaki Ota,
1458 Pieter E. J. Pareit, Ross Patterson, David Pearson, Juan Pechiar,
1459 Jeff Peck, Damon Anton Permezel, Tom Perrine, William M. Perry, Per
1460 Persson, Jens Petersen, Daniel Pfeiffer, Justus Piater, Richard L.
1461 Pieri, Fred Pierresteguy, François Pinard, Daniel Pittman, Christian
1462 Plaunt, Alexander Pohoyda, David Ponce, Francesco A. Potortì,
1463 Michael D. Prange, Mukesh Prasad, Ken Raeburn, Marko Rahamaa, Ashwin
1464 Ram, Eric S. Raymond, Paul Reilly, Edward M. Reingold, David
1465 Reitter, Alex Rezinsky, Rob Riepel, Lara Rios, Adrian Robert, Nick
1466 Roberts, Roland B. Roberts, John Robinson, Denis B. Roegel, Danny
1467 Roozendaal, Sebastian Rose, William Rosenblatt, Markus Rost, Guillermo
1468 J. Rozas, Martin Rudalics, Ivar Rummelhoff, Jason Rumney, Wolfgang
1469 Rupprecht, Benjamin Rutt, Kevin Ryde, James B. Salem, Masahiko Sato,
1470 Timo Savola, Jorgen Schäfer, Holger Schauer, William Schelter, Ralph
1471 Schleicher, Gregor Schmid, Michael Schmidt, Ronald S. Schnell,
1472 Philippe Schnoebelen, Jan Schormann, Alex Schroeder, Stefan Schoef,
1473 Rainer Schöpf, Raymond Scholz, Eric Schulte, Andreas Schwab, Randal
1474 Schwartz, Oliver Seidel, Manuel Serrano, Paul Sexton, Hovav Shacham,
1475 Stanislav Shalunov, Marc Shapiro, Richard Sharman, Olin Shivers, Tibor
1476 Šimko, Espen Skoglund, Rick Sladkey, Lynn Slater, Chris Smith,
1477 David Smith, Paul D. Smith, Wilson Snyder, William Sommerfeld, Simon
1478 South, Andre Spiegel, Michael Staats, Thomas Steffen, Ulf Stegemann,
1479 Reiner Steib, Sam Steingold, Ake Stenhoff, Peter Stephenson, Ken
1480 Stevens, Andy Stewart, Jonathan Stigelman, Martin Stjernholm, Kim F.
1481 Storm, Steve Strassmann, Christopher Suckling, Olaf Sylvester, Naoto
1482 Takahashi, Steven Tamm, Jan Tatarik, Luc Teirlinck, Jean-Philippe Theberge, Jens
1483 T. Berger Thielemann, Spencer Thomas, Jim Thompson, Toru Tomabechi,
1484 David O'Toole, Markus Triska, Tom Tromey, Enami Tsugutomo, Eli
1485 Tziperman, Daiki Ueno, Masanobu Umeda, Rajesh Vaidheeswarran, Neil
1486 W. Van Dyke, Didier Verna, Joakim Verona, Ulrik Vieth, Geoffrey
1487 Voelker, Johan Vromans, Inge Wallin, John Paul Wallington, Colin
1488 Walters, Barry Warsaw, Christoph Wedler, Ilja Weis, Zhang Weize,
1489 Morten Welinder, Joseph Brian Wells, Rodney Whitby, John Wiegley,
1490 Sascha Wilde, Ed Wilkinson, Mike Williams, Roland Winkler, Bill
1491 Wohler, Steven A. Wood, Dale R. Worley, Francis J. Wright, Felix
1492 S. T. Wu, Tom Wurgler, Yamamoto Mitsuharu, Katsumi Yamaoka,
1493 Masatake Yamato, Jonathan Yavner, Ryan Yeske, Ilya Zakharevich, Milan
1494 Zamazal, Victor Zandy, Eli Zaretskii, Jamie Zawinski, Andrew Zhilin,
1495 Shenghuo Zhu, Piotr Zieliński, Ian T. Zimmermann, Reto Zimmermann,
1496 Neal Ziring, Teodor Zlatanov, and Detlev Zundel.
1500 @unnumbered Introduction
1502 You are reading about GNU Emacs, the GNU incarnation of the
1503 advanced, self-documenting, customizable, extensible editor Emacs.
1505 @c Workaround makeinfo 4 bug.
1506 @c http://lists.gnu.org/archive/html/bug-texinfo/2004-08/msg00009.html
1508 @acronym{GNU, @acronym{GNU}'s Not Unix}
1511 @acronym{GNU, GNU's Not Unix}
1515 We call Emacs @dfn{advanced} because it can do much more than simple
1516 insertion and deletion of text. It can control subprocesses, indent
1517 programs automatically, show multiple files at once, and more.
1518 Emacs editing commands operate in terms of characters, words, lines,
1519 sentences, paragraphs, and pages, as well as expressions and comments
1520 in various programming languages.
1522 @dfn{Self-documenting} means that at any time you can use special
1523 commands, known as @dfn{help commands}, to find out what your options
1524 are, or to find out what any command does, or to find all the
1525 commands that pertain to a given topic. @xref{Help}.
1527 @dfn{Customizable} means that you can easily alter the behavior of
1528 Emacs commands in simple ways. For instance, if you use a programming
1529 language in which comments start with @samp{<**} and end with
1530 @samp{**>}, you can tell the Emacs comment manipulation commands to
1531 use those strings (@pxref{Comments}). To take another example, you
1532 can rebind the basic cursor motion commands (up, down, left and right)
1533 to any keys on the keyboard that you find comfortable.
1534 @xref{Customization}.
1536 @dfn{Extensible} means that you can go beyond simple customization
1537 and create entirely new commands. New commands are simply programs
1538 written in the Lisp language, which are run by Emacs's own Lisp
1539 interpreter. Existing commands can even be redefined in the middle of
1540 an editing session, without having to restart Emacs. Most of the
1541 editing commands in Emacs are written in Lisp; the few exceptions
1542 could have been written in Lisp but use C instead for efficiency.
1543 Writing an extension is programming, but non-programmers can use it
1544 afterwards. @xref{Top, Emacs Lisp Intro, Preface, eintr, An
1545 Introduction to Programming in Emacs Lisp}, if you want to learn Emacs
1548 @include screen.texi
1549 @include commands.texi
1550 @include entering.texi
1556 @include killing.texi
1558 @include display.texi
1559 @include search.texi
1561 @include kmacro.texi
1562 @c Includes arevert-xtra.
1564 @include buffers.texi
1565 @include windows.texi
1566 @include frames.texi
1569 @include indent.texi
1571 @c Includes fortran-xtra.
1572 @include programs.texi
1573 @include building.texi
1574 @c Includes vc1-xtra, emerge-xtra.
1575 @include maintaining.texi
1576 @include abbrevs.texi
1577 @c Includes dired-xtra.
1579 @c Includes cal-xtra.
1580 @include calendar.texi
1581 @include sending.texi
1583 @c Includes picture-xtra.texi
1585 @include package.texi
1586 @include custom.texi
1587 @include trouble.texi
1590 @appendix GNU GENERAL PUBLIC LICENSE
1593 @node GNU Free Documentation License
1594 @appendix GNU Free Documentation License
1595 @include doclicense.texi
1597 @include cmdargs.texi
1598 @include xresources.texi
1602 @c Includes msdos-xtra.
1605 @include glossary.texi
1610 @c The Option Index is produced only in the on-line version,
1611 @c because the index entries related to command-line options
1612 @c tend to point to the same pages and all begin with a dash.
1615 @unnumbered Key (Character) Index
1620 @unnumbered Command-Line Options Index
1625 @unnumbered Command and Function Index
1628 @node Variable Index
1629 @unnumbered Variable Index
1633 @unnumbered Concept Index