1 .\" Copyright (C) 1995, 1999, 2000, 2001, 2002, 2003, 2004,
2 .\" 2005, 2006, 2007 Free Software Foundation, Inc.
4 .\" This file is part of GNU Emacs.
6 .\" GNU Emacs is free software; you can redistribute it and/or modify
7 .\" it under the terms of the GNU General Public License as published by
8 .\" the Free Software Foundation; either version 2, or (at your option)
11 .\" GNU Emacs is distributed in the hope that it will be useful,
12 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
13 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 .\" GNU General Public License for more details.
16 .\" You should have received a copy of the GNU General Public License
17 .\" along with GNU Emacs; see the file COPYING. If not, write to the
18 .\" Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 .\" Boston, MA 02110-1301, USA.
22 .TH EMACS 1 "2001 November 23"
25 emacs \- GNU project Emacs
29 .I command-line switches
38 written by the author of the original (PDP-10)
42 The primary documentation of GNU Emacs is in the GNU Emacs Manual,
43 which you can read on line using Info, a subsystem of Emacs. Please
44 look there for complete and up-to-date documentation. This man page
45 is updated only when someone volunteers to do so; the Emacs
46 maintainers' priority goal is to minimize the amount of time this man
47 page takes away from other more useful projects.
49 The user functionality of GNU Emacs encompasses
52 editors do, and it is easily extensible since its
53 editing commands are written in Lisp.
56 has an extensive interactive help facility,
57 but the facility assumes that you know how to manipulate
60 CTRL-h or F1 enters the Help facility. Help Tutorial (CTRL-h t)
61 requests an interactive tutorial which can teach beginners the fundamentals
65 Help Apropos (CTRL-h a) helps you
66 find a command given its functionality, Help Character (CTRL-h c)
67 describes a given character's effect, and Help Function (CTRL-h f)
68 describes a given Lisp function specified by name.
71 Undo can undo several steps of modification to your buffers, so it is
72 easy to recover from editing mistakes.
75 many special packages handle mail reading (RMail) and sending (Mail),
76 outline editing (Outline), compiling (Compile), running subshells
79 windows (Shell), running a Lisp read-eval-print loop
80 (Lisp-Interaction-Mode), and automated psychotherapy (Doctor).
82 There is an extensive reference manual, but
83 users of other Emacses
84 should have little trouble adapting even
85 without a copy. Users new to
88 to use basic features fairly rapidly by studying the tutorial and
89 using the self-documentation features.
93 The following options are of general interest:
100 Go to the line specified by
102 (do not insert a space between the "+" sign and
103 the number). This applies only to the next file specified.
112 Do not load an init file.
115 Do not load the site-wide startup file.
120 Lisp debugger during the processing of the user init file
122 This is useful for debugging problems in the init file.
132 as the terminal instead of using stdin/stdout.
133 This must be the first argument specified in the command line.
138 version information and exit.
140 The following options are lisp-oriented
141 (these options are processed in the order encountered):
144 Execute the lisp function
148 Load the lisp code in the file
152 Evaluate the Lisp expression
155 The following options are useful when running
160 Edit in batch mode. The editor will send messages to stderr. This
161 option must be the first in the argument list. You must use -l and -f
162 options to specify files to execute and functions to call.
172 to the list of directories
174 searches for Lisp files.
175 .\" START DELETING HERE IF YOU'RE NOT USING X
177 .SM Using Emacs with X
180 has been tailored to work well with the X window system.
183 from under X windows, it will create its own X window to
184 display in. You will probably want to start the editor
185 as a background process
186 so that you can continue using your original window.
189 can be started with the following X switches:
192 Specifies the name which should be assigned to the initial
194 window. This controls looking up X resources as well as the window title.
197 Specifies the title for the initial X window.
202 window in reverse video.
205 Use the "kitchen sink" bitmap icon when iconifying the
209 .BI \-font " font, " \-fn " font"
212 window's font to that specified by
214 You will find the various
217 .I /usr/lib/X11/fonts
221 will only accept fixed width fonts.
222 Under the X11 Release 4 font-naming conventions, any font with the
223 value "m" or "c" in the eleventh field of the font name is a fixed
224 width font. Furthermore, fonts whose name are of the form
226 are generally fixed width, as is the font
230 for more information.
232 When you specify a font, be sure to put a space between the
233 switch and the font name.
238 window's border width to the number of pixels specified by
240 Defaults to one pixel on each side of the window.
243 Set the window's internal border width to the number of pixels specified
246 Defaults to one pixel of padding on each side of the window.
249 .BI \-\-geometry " geometry"
252 window's width, height, and position as specified. The geometry
253 specification is in the standard X format; see
255 for more information.
256 The width and height are specified in characters; the default is 80 by
257 24. See the Emacs manual, section "Options for Window Size and Position",
258 for information on how window sizes interact
259 with selecting or deselecting the tool bar and menu bar.
263 On color displays, sets the color of the text.
266 .I /usr/lib/X11/rgb.txt
272 sets the color of the window's background.
276 sets the color of the window's border.
280 sets the color of the window's text cursor.
284 sets the color of the window's mouse cursor.
286 .BI \-d " displayname, " \-display " displayname"
289 window on the display specified by
291 Must be the first option specified in the command line.
296 not to use its special interface to X. If you use this
301 window, display is done in that window.
302 This must be the first option specified in the command line.
306 default values for your
312 Use the following format:
318 specifies the default value of
321 lets you set default values for the following keywords:
323 .B font (\fPclass\fB Font)
324 Sets the window's text font.
326 .B reverseVideo (\fPclass\fB ReverseVideo)
331 the window will be displayed in reverse video.
333 .B bitmapIcon (\fPclass\fB BitmapIcon)
338 the window will iconify into the "kitchen sink."
340 .B borderWidth (\fPclass\fB BorderWidth)
341 Sets the window's border width in pixels.
343 .B internalBorder (\fPclass\fB BorderWidth)
344 Sets the window's internal border width in pixels.
346 .B foreground (\fPclass\fB Foreground)
348 sets the window's text color.
350 .B background (\fPclass\fB Background)
352 sets the window's background color.
354 .B borderColor (\fPclass\fB BorderColor)
356 sets the color of the window's border.
358 .B cursorColor (\fPclass\fB Foreground)
360 sets the color of the window's text cursor.
362 .B pointerColor (\fPclass\fB Foreground)
364 sets the color of the window's mouse cursor.
366 .B geometry (\fPclass\fB Geometry)
367 Sets the geometry of the
369 window (as described above).
371 .B title (\fPclass\fB Title)
372 Sets the title of the
376 .B iconName (\fPclass\fB Title)
377 Sets the icon name for the
381 If you try to set color values while using a black and white display,
382 the window's characteristics will default as follows:
383 the foreground color will be set to black,
384 the background color will be set to white,
385 the border color will be set to grey,
386 and the text and mouse cursors will be set to black.
390 The following lists the mouse button bindings for the
396 MOUSE BUTTON FUNCTION
399 right Cut text into X cut buffer.
400 SHIFT-middle Cut text into X cut buffer.
401 SHIFT-right Paste text.
402 CTRL-middle Cut text into X cut buffer and kill it.
404 Select this window, then split it into
405 two windows. Same as typing CTRL-x 2.
407 .\" START DELETING HERE IF YOU'RE NOT USING X MENUS
409 X buffer menu--hold the buttons and keys
410 down, wait for menu to appear, select
411 buffer, and release. Move mouse out of
412 menu and release to cancel.
414 CTRL-SHIFT-middle X help menu--pop up index card menu for Emacs help.
415 .\" STOP DELETING HERE IF YOU'RE NOT USING X MENUS
417 Select window with mouse, and delete all
418 other windows. Same as typing CTRL-x 1.
420 .\" STOP DELETING HERE IF YOU'RE NOT USING X
424 You can order printed copies of the GNU Emacs Manual from the Free
425 Software Foundation, which develops GNU software. See the file ORDERS
426 for ordering information.
428 Your local Emacs maintainer might also have copies available. As
429 with all software and publications from FSF, everyone is permitted to
430 make and distribute copies of the Emacs manual. The TeX source to the
431 manual is also included in the Emacs source distribution.
434 /usr/local/share/info - files for the Info documentation browser
435 (a subsystem of Emacs) to refer to. Currently not much of Unix
436 is documented here, but the complete text of the Emacs reference
437 manual is included in a convenient tree structured form.
439 /usr/local/share/emacs/$VERSION/src - C source files and object files
441 /usr/local/share/emacs/$VERSION/lisp - Lisp source files and compiled files
442 that define most editing commands. Some are preloaded;
443 others are autoloaded from this directory when used.
445 /usr/local/share/emacs/$VERSION/etc - various programs that are used with
446 GNU Emacs, and some files of information.
448 /usr/local/share/emacs/$VERSION/etc/DOC.* - contains the documentation
449 strings for the Lisp primitives and preloaded Lisp functions
450 of GNU Emacs. They are stored here to reduce the size of
453 /usr/local/share/emacs/$VERSION/etc/OTHER.EMACSES discusses GNU Emacs
454 vs. other versions of Emacs.
456 /usr/local/share/emacs/$VERSION/etc/SERVICE lists people offering
457 various services to assist users of GNU Emacs, including education,
458 troubleshooting, porting and customization.
460 These files also have information useful to anyone wishing to write
461 programs in the Emacs Lisp extension language, which has not yet been fully
464 /usr/local/com/emacs/lock - holds lock files that are made for all
465 files being modified in Emacs, to prevent simultaneous modification
466 of one file by two users.
468 .\" START DELETING HERE IF YOU'RE NOT USING X
469 /usr/lib/X11/rgb.txt - list of valid X color names.
470 .\" STOP DELETING HERE IF YOU'RE NOT USING X
473 There is a mailing list, bug-gnu-emacs@gnu.org, for reporting Emacs
474 bugs and fixes. But before reporting something as a bug, please try
475 to be sure that it really is a bug, not a misunderstanding or a
476 deliberate feature. We ask you to read the section ``Reporting Emacs
477 Bugs'' near the end of the reference manual (or Info system) for hints
478 on how and when to report bugs. Also, include the version number of
479 the Emacs you are running in \fIevery\fR bug report that you send in.
481 Do not expect a personal answer to a bug report. The purpose of reporting
482 bugs is to get them fixed for everyone in the next release, if possible.
483 For personal assistance, look in the SERVICE file (see above) for
484 a list of people who offer it.
486 Please do not send anything but bug reports to this mailing list.
487 For more information about Emacs mailing lists, see the
488 file /usr/local/emacs/etc/MAILINGLISTS. Bugs tend actually to be
489 fixed if they can be isolated, so it is in your interest to report
490 them in such a way that they can be easily reproduced.
492 Bugs that I know about are: shell will not work with programs
493 running in Raw mode on some Unix versions.
497 is free; anyone may redistribute copies of
500 anyone under the terms stated in the
502 General Public License,
503 a copy of which accompanies each copy of
506 appears in the reference manual.
510 may sometimes be received packaged with distributions of Unix systems,
511 but it is never included in the scope of any license covering those
512 systems. Such inclusion violates the terms on which distribution
513 is permitted. In fact, the primary purpose of the General Public
514 License is to prohibit anyone from attaching any other restrictions
518 Richard Stallman encourages you to improve and extend
521 you contribute your extensions to the GNU library. Eventually GNU
522 (Gnu's Not Unix) will be a complete replacement for Berkeley
524 Everyone will be free to use, copy, study and change the GNU system.
526 X(1), xlsfonts(1), xterm(1), xrdb(1)
530 was written by Richard Stallman and the Free Software Foundation.
531 Joachim Martillo and Robert Krawitz added the X features.
536 1995, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
537 2006, 2007 Free Software Foundation, Inc.
539 Permission is granted to make and distribute verbatim copies of this
540 document provided the copyright notice and this permission notice are
541 preserved on all copies.
543 Permission is granted to copy and distribute modified versions of
544 this document under the conditions for verbatim copying, provided that
545 the entire resulting derived work is distributed under the terms of
546 a permission notice identical to this one.
548 Permission is granted to copy and distribute translations of this
549 document into another language, under the above conditions for
550 modified versions, except that this permission notice may be stated
551 in a translation approved by the Free Software Foundation.
553 .\" arch-tag: 04dfd376-b46e-4924-919a-cecc3b257eaa