1 .\" See section COPYING for copyright and redistribution information.
2 .TH EMACS 1 "2007 April 13" "GNU Emacs @version@"
6 emacs \- GNU project Emacs
12 .I command-line switches
22 written by the author of the original (PDP-10)
25 The user functionality of GNU Emacs encompasses everything other
26 editors do, and it is easily extensible since its editing commands are
29 The primary documentation of GNU Emacs is in the GNU Emacs Manual,
30 which you can read using Info, either from Emacs or as a standalone
32 Please look there for complete and up-to-date documentation.
33 This man page is updated only when someone volunteers to do so.
36 has an extensive interactive help facility,
37 but the facility assumes that you know how to manipulate
40 CTRL-h or F1 enters the Help facility.
41 Help Tutorial (CTRL-h t) starts an interactive tutorial to quickly
42 teach beginners the fundamentals of
44 Help Apropos (CTRL-h a) helps you find a command with a name matching
45 a given pattern, Help Key (CTRL-h k) describes a given key sequence,
46 and Help Function (CTRL-h f) describes a given Lisp function.
49 many special packages handle mail reading (RMail) and sending (Mail),
50 outline editing (Outline), compiling (Compile), running subshells
53 windows (Shell), running a Lisp read-eval-print loop
54 (Lisp-Interaction-Mode), automated psychotherapy (Doctor), and much more.
57 The following options are of general interest:
64 .BI \-\-file " file\fR,\fP " \-\-find-file " file\fR,\fP " \-\-visit " file"
65 The same as specifying
67 directly as an argument.
70 Go to the line specified by
72 (do not insert a space between the "+" sign and
74 This applies only to the next file specified.
82 .BI \-\-chdir " directory"
86 .BR \-q ", " \-\-no\-init\-file
87 Do not load an init file.
89 .BR \-nl ", " \-\-no\-shared\-memory
90 Do not use shared memory.
93 Do not load the site-wide startup file.
95 .BR \-nsl ", " \-\-no\-site\-lisp
96 Do not add site-lisp directories to load-path.
99 Do not load a saved desktop.
101 .BR \-Q ", " \-\-quick
102 Similar to "\-q \-\-no\-site\-file \-\-no\-splash". Also, avoid
103 processing X resources.
106 Do not display a splash screen during start-up.
111 Lisp debugger during the processing of the user init file
113 This is useful for debugging problems in the init file.
115 .BI \-u " user\fR,\fP " \-\-user " user"
120 .BI \-t " file\fR,\fP " \-\-terminal " file"
123 as the terminal instead of using stdin/stdout.
124 This must be the first argument specified in the command line.
126 .BI \-\-daemon "\fR[=\fPname\fR]"
127 Start Emacs as a daemon, enabling the Emacs server and disconnecting
128 from the terminal. You can then use the emacsclient (see
131 connect to the server (with optional
137 version information and exit.
140 Display this help and exit.
143 The following options are Lisp-oriented
144 (these options are processed in the order encountered):
147 .BI \-f " function\fR,\fP " \-\-funcall " function"
148 Execute the lisp function
151 .BI \-l " file\fR,\fP " \-\-load " file"
152 Load the lisp code in the file
155 .BI \-\-eval " expr\fR,\fP " \-\-execute " expr"
156 Evaluate the Lisp expression
160 The following options are useful when running
167 The editor will send messages to stderr.
168 You must use \-l and \-f options to specify files to execute
169 and functions to call.
171 .BI \-\-script " file"
174 as an Emacs Lisp script.
176 .BI \-\-insert " file"
179 into the current buffer.
186 .BI \-L " dir\fR,\fP " \-\-directory " dir"
189 to the list of directories
191 searches for Lisp files.
194 .\" START DELETING HERE IF YOU'RE NOT USING X
195 .SS Using Emacs with X
197 has been tailored to work well with the X window system.
200 from under X windows, it will create its own X window to
202 You will probably want to start the editor as a background
203 process so that you can continue using your original window.
206 can be started with the following X switches:
210 Specify the name which should be assigned to the initial
213 This controls looking up X resources as well as the window title.
215 .BI \-T " name\fR,\fP " \-\-title " name"
216 Specify the title for the initial X window.
218 .BR \-r ", " \-rv ", " \-\-reverse\-video
221 window in reverse video.
223 .BI \-fn " font\fR,\fP " \-\-font " font"
226 window's font to that specified by
228 You will find the various
231 .I /usr/lib/X11/fonts
235 will only accept fixed width fonts.
236 Under the X11 Release 4 font-naming conventions, any font with the
237 value "m" or "c" in the eleventh field of the font name is a fixed
239 Furthermore, fonts whose name are of the form
241 are generally fixed width, as is the font
245 for more information.
247 When you specify a font, be sure to put a space between the
248 switch and the font name.
250 .BI \-\-xrm " resources"
251 Set additional X resources.
253 .BI "\-\-color\fR,\fP \-\-color=" mode
254 Override color mode for character terminals;
256 defaults to "auto", and can also be "never", "auto", "always",
257 or a mode name like "ansi8".
259 .BI \-bw " pixels\fR,\fP " \-\-border\-width " pixels"
262 window's border width to the number of pixels specified by
264 Defaults to one pixel on each side of the window.
266 .BI \-ib " pixels\fR,\fP " \-\-internal\-border " pixels"
267 Set the window's internal border width to the number of pixels specified
270 Defaults to one pixel of padding on each side of the window.
272 .BI \-g " geometry\fR,\fP " \-\-geometry " geometry"
275 window's width, height, and position as specified.
276 The geometry specification is in the standard X format; see
278 for more information.
279 The width and height are specified in characters; the default is
281 See the Emacs manual, section "Options for Window Size and Position",
282 for information on how window sizes interact
283 with selecting or deselecting the tool bar and menu bar.
285 .BI \-lsp " pixels\fR,\fP " \-\-line\-spacing " pixels"
286 Additional space to put between lines.
288 .BR \-vb ", " \-\-vertical\-scroll\-bars
289 Enable vertical scrollbars.
291 .BR \-fh ", " \-\-fullheight
292 Make the first frame as high as the screen.
294 .BR \-fs ", " \-\-fullscreen
295 Make the first frame fullscreen.
297 .BR \-fw ", " \-\-fullwidth
298 Make the first frame as wide as the screen.
300 .BR \-mm ", " \-\-maximized
301 Maximize the first frame, like "\-fw \-fh".
303 .BI \-fg " color\fR,\fP " \-\-foreground\-color " color"
304 On color displays, set the color of the text.
307 .I M\-x list\-colors\-display
308 for a list of valid color names.
310 .BI \-bg " color\fR,\fP " \-\-background\-color " color"
311 On color displays, set the color of the window's background.
313 .BI \-bd " color\fR,\fP " \-\-border\-color " color"
314 On color displays, set the color of the window's border.
316 .BI \-cr " color\fR,\fP " \-\-cursor\-color " color"
317 On color displays, set the color of the window's text cursor.
319 .BI \-ms " color\fR,\fP " \-\-mouse\-color " color"
320 On color displays, set the color of the window's mouse cursor.
322 .BI \-d " displayname\fR,\fP " \-\-display " displayname"
325 window on the display specified by
327 Must be the first option specified in the command line.
329 .BR \-nbi ", " \-\-no\-bitmap\-icon
330 Do not use picture of gnu for Emacs icon.
337 .BR \-nbc ", " \-\-no\-blinking\-cursor
338 Disable blinking cursor.
340 .BI \-\-parent-id " xid"
343 .BR \-nw ", " \-\-no\-window\-system
346 not to create a graphical frame.
347 If you use this switch when invoking
351 window, display is done in that window.
353 .BR \-D ", " \-\-basic\-display
354 This option disables many display features; use it for
360 default values for your
366 Use the following format:
368 .RI emacs. keyword : value
372 specifies the default value of
375 lets you set default values for the following keywords:
378 .BR background " (class " Background )
380 sets the window's background color.
382 .BR bitmapIcon " (class " BitmapIcon )
387 the window will iconify into the "kitchen sink."
389 .BR borderColor " (class " BorderColor )
391 sets the color of the window's border.
393 .BR borderWidth " (class " BorderWidth )
394 Sets the window's border width in pixels.
396 .BR cursorColor " (class " Foreground )
398 sets the color of the window's text cursor.
400 .BR cursorBlink " (class " CursorBlink )
401 Specifies whether to make the cursor blink.
408 to turn cursor blinking off.
410 .BR font " (class " Font )
411 Sets the window's text font.
413 .BR foreground " (class " Foreground )
415 sets the window's text color.
417 .BR fullscreen " (class " Fullscreen )
418 The desired fullscreen size.
419 The value can be one of
425 which correspond to the command-line options "\-fs", "\-mm", "\-fw",
426 and "\-fh", respectively.
427 Note that this applies to the initial frame only.
429 .BR geometry " (class " Geometry )
430 Sets the geometry of the
432 window (as described above).
434 .BR iconName " (class " Title )
435 Sets the icon name for the
439 .BR internalBorder " (class " BorderWidth )
440 Sets the window's internal border width in pixels.
442 .BR lineSpacing " (class " LineSpacing )
443 Additional space ("leading") between lines, in pixels.
445 .BR menuBar " (class " MenuBar )
446 Gives frames menu bars if
448 don't have menu bars if
450 See the Emacs manual, sections "Lucid Resources" and "Motif
451 Resources", for how to control the appearance of the menu bar
454 .BR minibuffer " (class " Minibuffer )
457 don't make a minibuffer in this frame.
458 It will use a separate minibuffer frame instead.
460 .BR paneFont " (class " Font )
461 Font name for menu pane titles, in non-toolkit versions of
464 .BR pointerColor " (class " Foreground )
466 sets the color of the window's mouse cursor.
468 .BR privateColormap " (class " PrivateColormap )
471 use a private color map, in the case where the "default
478 .BR reverseVideo " (class " ReverseVideo )
483 the window will be displayed in reverse video.
485 .BR screenGamma " (class "ScreenGamma )
486 Gamma correction for colors, equivalent to the frame parameter
489 .BR scrollBarWidth " (class "ScrollBarWidth )
490 The scroll bar width in pixels, equivalent to the frame parameter
491 "scroll\-bar\-width".
493 .BR selectionFont " (class " SelectionFont )
494 Font name for pop-up menu items, in non-toolkit versions of
496 (For toolkit versions, see the Emacs manual, sections
497 "Lucid Resources" and "Motif Resources".)
499 .BR selectionTimeout " (class " SelectionTimeout )
500 Number of milliseconds to wait for a selection reply.
501 A value of 0 means wait as long as necessary.
503 .BR synchronous " (class " Synchronous )
504 Run Emacs in synchronous mode if
506 Synchronous mode is useful for debugging X problems.
508 .BR title " (class " Title )
509 Sets the title of the
513 .BR toolBar " (class " ToolBar )
514 Number of lines to reserve for the tool bar.
516 .BR useXIM " (class " UseXIM )
517 Turns off use of X input methods (XIM) if
522 .BR verticalScrollBars " (class " ScrollBars )
523 Gives frames scroll bars if
525 suppresses scroll bars if
528 .BR visualClass " (class " VisualClass )
529 Specify the "visual" that X should use.
530 This tells X how to handle colors.
531 The value should start with one of
543 is the number of color planes.
547 You can order printed copies of the GNU Emacs Manual from the Free
548 Software Foundation, which develops GNU software.
549 See the online store at <http://shop.fsf.org/>.
551 Your local administrator might also have copies available.
552 As with all software and publications from FSF, everyone is permitted
553 to make and distribute copies of the Emacs manual.
554 The Texinfo source to the manual is also included in the Emacs source
559 /usr/local/share/info \(em files for the Info documentation browser.
560 The complete text of the Emacs reference manual is included in a
561 convenient tree structured form.
562 Also includes the Emacs Lisp Reference Manual, useful to anyone
563 wishing to write programs in the Emacs Lisp extension language,
564 and the Introduction to Programming in Emacs Lisp.
566 /usr/local/share/emacs/$VERSION/lisp \(em Lisp source files and
567 compiled files that define most editing commands.
568 Some are preloaded; others are autoloaded from this directory when
571 /usr/local/libexec/emacs/$VERSION/$ARCH \(em various programs that are
574 /usr/local/share/emacs/$VERSION/etc \(em various files of information.
576 /usr/local/share/emacs/$VERSION/etc/DOC.* \(em contains the documentation
577 strings for the Lisp primitives and preloaded Lisp functions
579 They are stored here to reduce the size of Emacs proper.
584 There is a mailing list, @PACKAGE_BUGREPORT@, for reporting Emacs
586 But before reporting something as a bug, please try to be sure that
587 it really is a bug, not a misunderstanding or a deliberate feature.
588 We ask you to read the section "Reporting Bugs" in the Emacs manual
589 for hints on how and when to report bugs.
590 Also, include the version number of the Emacs you are running in
591 \fIevery\fR bug report that you send in.
592 Bugs tend actually to be fixed if they can be isolated, so it is
593 in your interest to report them in such a way that they can be
596 Do not expect a personal answer to a bug report.
597 The purpose of reporting bugs is to get them fixed for everyone
598 in the next release, if possible.
599 For personal assistance, consult the service directory at
600 <http://www.fsf.org/resources/service/> for a list of people who offer it.
602 Please do not send anything but bug reports to this mailing list.
603 For other Emacs lists, see <http://savannah.gnu.org/mail/?group=emacs>.
608 is free; anyone may redistribute copies of
610 to anyone under the terms stated in the GNU General Public License,
611 a copy of which accompanies each copy of
614 appears in the reference manual.
618 may sometimes be received packaged with distributions of Unix systems,
619 but it is never included in the scope of any license covering those
621 Such inclusion violates the terms on which distribution is permitted.
622 In fact, the primary purpose of the GNU General Public License is to
623 prohibit anyone from attaching any other restrictions to
627 Richard Stallman encourages you to improve and extend
630 you contribute your extensions to the GNU library.
631 Eventually GNU (Gnu's Not Unix) will be a complete replacement
633 Everyone will be free to use, copy, study and change the GNU system.
647 was written by Richard Stallman and the Free Software Foundation.
648 For detailed credits and acknowledgments, see the GNU Emacs manual.
656 1995, 1999-2017 Free Software Foundation, Inc.
658 Permission is granted to make and distribute verbatim copies of this
659 document provided the copyright notice and this permission notice are
660 preserved on all copies.
662 Permission is granted to copy and distribute modified versions of
663 this document under the conditions for verbatim copying, provided that
664 the entire resulting derived work is distributed under the terms of
665 a permission notice identical to this one.
667 Permission is granted to copy and distribute translations of this
668 document into another language, under the above conditions for
669 modified versions, except that this permission notice may be stated
670 in a translation approved by the Free Software Foundation.