1 .\" See section COPYING for copyright and redistribution information.
2 .TH EMACS 1 "2007 April 13" "GNU Emacs 24.3.50"
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.
127 Start Emacs as a daemon, enabling the Emacs server and disconnecting
128 from the terminal. You can then use the emacsclient command to
129 connect to the server (see
130 .BR emacsclient (1)).
135 version information and exit.
138 Display this help and exit.
141 The following options are Lisp-oriented
142 (these options are processed in the order encountered):
145 .BI \-f " function\fR,\fP " \-\-funcall " function"
146 Execute the lisp function
149 .BI \-l " file\fR,\fP " \-\-load " file"
150 Load the lisp code in the file
153 .BI \-\-eval " expr\fR,\fP " \-\-execute " expr"
154 Evaluate the Lisp expression
158 The following options are useful when running
165 The editor will send messages to stderr.
166 You must use \-l and \-f options to specify files to execute
167 and functions to call.
169 .BI \-\-script " file"
172 as an Emacs Lisp script.
174 .BI \-\-insert " file"
177 into the current buffer.
184 .BI \-L " dir\fR,\fP " \-\-directory " dir"
187 to the list of directories
189 searches for Lisp files.
192 .\" START DELETING HERE IF YOU'RE NOT USING X
193 .SS Using Emacs with X
195 has been tailored to work well with the X window system.
198 from under X windows, it will create its own X window to
200 You will probably want to start the editor as a background
201 process so that you can continue using your original window.
204 can be started with the following X switches:
208 Specify the name which should be assigned to the initial
211 This controls looking up X resources as well as the window title.
213 .BI \-T " name\fR,\fP " \-\-title " name"
214 Specify the title for the initial X window.
216 .BR \-r ", " \-rv ", " \-\-reverse\-video
219 window in reverse video.
221 .BI \-fn " font\fR,\fP " \-\-font " font"
224 window's font to that specified by
226 You will find the various
229 .I /usr/lib/X11/fonts
233 will only accept fixed width fonts.
234 Under the X11 Release 4 font-naming conventions, any font with the
235 value "m" or "c" in the eleventh field of the font name is a fixed
237 Furthermore, fonts whose name are of the form
239 are generally fixed width, as is the font
243 for more information.
245 When you specify a font, be sure to put a space between the
246 switch and the font name.
248 .BI \-\-xrm " resources"
249 Set additional X resources.
251 .BI "\-\-color\fR,\fP \-\-color=" mode
252 Override color mode for character terminals;
254 defaults to `auto', and can also be `never', `auto', `always',
255 or a mode name like `ansi8'.
257 .BI \-bw " pixels\fR,\fP " \-\-border\-width " pixels"
260 window's border width to the number of pixels specified by
262 Defaults to one pixel on each side of the window.
264 .BI \-ib " pixels\fR,\fP " \-\-internal\-border " pixels"
265 Set the window's internal border width to the number of pixels specified
268 Defaults to one pixel of padding on each side of the window.
270 .BI \-g " geometry\fR,\fP " \-\-geometry " geometry"
273 window's width, height, and position as specified.
274 The geometry specification is in the standard X format; see
276 for more information.
277 The width and height are specified in characters; the default is
279 See the Emacs manual, section "Options for Window Size and Position",
280 for information on how window sizes interact
281 with selecting or deselecting the tool bar and menu bar.
283 .BI \-lsp " pixels\fR,\fP " \-\-line\-spacing " pixels"
284 Additional space to put between lines.
286 .BR \-vb ", " \-\-vertical\-scroll\-bars
287 Enable vertical scrollbars.
289 .BR \-fh ", " \-\-fullheight
290 Make the first frame as high as the screen.
292 .BR \-fs ", " \-\-fullscreen
293 Make the first frame fullscreen.
295 .BR \-fw ", " \-\-fullwidth
296 Make the first frame as wide as the screen.
298 .BR \-mm ", " \-\-maximized
299 Maximize the first frame, like "\-fw \-fh".
301 .BI \-fg " color\fR,\fP " \-\-foreground\-color " color"
302 On color displays, set the color of the text.
305 .I M\-x list\-colors\-display
306 for a list of valid color names.
308 .BI \-bg " color\fR,\fP " \-\-background\-color " color"
309 On color displays, set the color of the window's background.
311 .BI \-bd " color\fR,\fP " \-\-border\-color " color"
312 On color displays, set the color of the window's border.
314 .BI \-cr " color\fR,\fP " \-\-cursor\-color " color"
315 On color displays, set the color of the window's text cursor.
317 .BI \-ms " color\fR,\fP " \-\-mouse\-color " color"
318 On color displays, set the color of the window's mouse cursor.
320 .BI \-d " displayname\fR,\fP " \-\-display " displayname"
323 window on the display specified by
325 Must be the first option specified in the command line.
327 .BR \-nbi ", " \-\-no\-bitmap\-icon
328 Do not use picture of gnu for Emacs icon.
335 .BR \-nbc ", " \-\-no\-blinking\-cursor
336 Disable blinking cursor.
338 .BI \-\-parent-id " xid"
341 .BR \-nw ", " \-\-no\-window\-system
344 not to create a graphical frame.
345 If you use this switch when invoking
349 window, display is done in that window.
351 .BR \-D ", " \-\-basic\-display
352 This option disables many display features; use it for
358 default values for your
364 Use the following format:
366 .RI emacs. keyword : value
370 specifies the default value of
373 lets you set default values for the following keywords:
376 .BR background " (class " Background )
378 sets the window's background color.
380 .BR bitmapIcon " (class " BitmapIcon )
385 the window will iconify into the "kitchen sink."
387 .BR borderColor " (class " BorderColor )
389 sets the color of the window's border.
391 .BR borderWidth " (class " BorderWidth )
392 Sets the window's border width in pixels.
394 .BR cursorColor " (class " Foreground )
396 sets the color of the window's text cursor.
398 .BR cursorBlink " (class " CursorBlink )
399 Specifies whether to make the cursor blink.
406 to turn cursor blinking off.
408 .BR font " (class " Font )
409 Sets the window's text font.
411 .BR foreground " (class " Foreground )
413 sets the window's text color.
415 .BR fullscreen " (class " Fullscreen )
416 The desired fullscreen size.
417 The value can be one of
423 which correspond to the command-line options `\-fs', `\-mm', `\-fw',
424 and `\-fh', respectively.
425 Note that this applies to the initial frame only.
427 .BR geometry " (class " Geometry )
428 Sets the geometry of the
430 window (as described above).
432 .BR iconName " (class " Title )
433 Sets the icon name for the
437 .BR internalBorder " (class " BorderWidth )
438 Sets the window's internal border width in pixels.
440 .BR lineSpacing " (class " LineSpacing )
441 Additional space ("leading") between lines, in pixels.
443 .BR menuBar " (class " MenuBar )
444 Gives frames menu bars if
446 don't have menu bars if
448 See the Emacs manual, sections "Lucid Resources" and "LessTif
449 Resources", for how to control the appearance of the menu bar
452 .BR minibuffer " (class " Minibuffer )
455 don't make a minibuffer in this frame.
456 It will use a separate minibuffer frame instead.
458 .BR paneFont " (class " Font )
459 Font name for menu pane titles, in non-toolkit versions of
462 .BR pointerColor " (class " Foreground )
464 sets the color of the window's mouse cursor.
466 .BR privateColormap " (class " PrivateColormap )
469 use a private color map, in the case where the "default
476 .BR reverseVideo " (class " ReverseVideo )
481 the window will be displayed in reverse video.
483 .BR screenGamma " (class "ScreenGamma )
484 Gamma correction for colors, equivalent to the frame parameter
487 .BR scrollBarWidth " (class "ScrollBarWidth )
488 The scroll bar width in pixels, equivalent to the frame parameter
489 `scroll\-bar\-width'.
491 .BR selectionFont " (class " SelectionFont )
492 Font name for pop-up menu items, in non-toolkit versions of
494 (For toolkit versions, see the Emacs manual, sections
495 "Lucid Resources" and "LessTif Resources".)
497 .BR selectionTimeout " (class " SelectionTimeout )
498 Number of milliseconds to wait for a selection reply.
499 A value of 0 means wait as long as necessary.
501 .BR synchronous " (class " Synchronous )
502 Run Emacs in synchronous mode if
504 Synchronous mode is useful for debugging X problems.
506 .BR title " (class " Title )
507 Sets the title of the
511 .BR toolBar " (class " ToolBar )
512 Number of lines to reserve for the tool bar.
514 .BR useXIM " (class " UseXIM )
515 Turns off use of X input methods (XIM) if
520 .BR verticalScrollBars " (class " ScrollBars )
521 Gives frames scroll bars if
523 suppresses scroll bars if
526 .BR visualClass " (class " VisualClass )
527 Specify the "visual" that X should use.
528 This tells X how to handle colors.
529 The value should start with one of
541 is the number of color planes.
545 You can order printed copies of the GNU Emacs Manual from the Free
546 Software Foundation, which develops GNU software.
547 See the online store at <http://shop.fsf.org/>.
549 Your local administrator might also have copies available.
550 As with all software and publications from FSF, everyone is permitted
551 to make and distribute copies of the Emacs manual.
552 The Texinfo source to the manual is also included in the Emacs source
557 /usr/local/share/info \(em files for the Info documentation browser.
558 The complete text of the Emacs reference manual is included in a
559 convenient tree structured form.
560 Also includes the Emacs Lisp Reference Manual, useful to anyone
561 wishing to write programs in the Emacs Lisp extension language,
562 and the Introduction to Programming in Emacs Lisp.
564 /usr/local/share/emacs/$VERSION/lisp \(em Lisp source files and
565 compiled files that define most editing commands.
566 Some are preloaded; others are autoloaded from this directory when
569 /usr/local/libexec/emacs/$VERSION/$ARCH \(em various programs that are
572 /usr/local/share/emacs/$VERSION/etc \(em various files of information.
574 /usr/local/share/emacs/$VERSION/etc/DOC.* \(em contains the documentation
575 strings for the Lisp primitives and preloaded Lisp functions
577 They are stored here to reduce the size of Emacs proper.
579 /usr/local/share/emacs/$VERSION/etc/SERVICE lists people offering
580 various services to assist users of GNU Emacs, including education,
581 troubleshooting, porting and customization.
585 There is a mailing list, bug-gnu-emacs@gnu.org, for reporting Emacs
587 But before reporting something as a bug, please try to be sure that
588 it really is a bug, not a misunderstanding or a deliberate feature.
589 We ask you to read the section ``Reporting Bugs'' in the Emacs manual
590 for hints on how and when to report bugs.
591 Also, include the version number of the Emacs you are running in
592 \fIevery\fR bug report that you send in.
593 Bugs tend actually to be fixed if they can be isolated, so it is
594 in your interest to report them in such a way that they can be
597 Do not expect a personal answer to a bug report.
598 The purpose of reporting bugs is to get them fixed for everyone
599 in the next release, if possible.
600 For personal assistance, look in the SERVICE file (see above) for
601 a list of people who offer it.
603 Please do not send anything but bug reports to this mailing list.
604 For more information about Emacs mailing lists, see the
605 file /usr/local/share/emacs/$VERSION/etc/MAILINGLISTS.
610 is free; anyone may redistribute copies of
612 to anyone under the terms stated in the GNU General Public License,
613 a copy of which accompanies each copy of
616 appears in the reference manual.
620 may sometimes be received packaged with distributions of Unix systems,
621 but it is never included in the scope of any license covering those
623 Such inclusion violates the terms on which distribution is permitted.
624 In fact, the primary purpose of the GNU General Public License is to
625 prohibit anyone from attaching any other restrictions to
629 Richard Stallman encourages you to improve and extend
632 you contribute your extensions to the GNU library.
633 Eventually GNU (Gnu's Not Unix) will be a complete replacement
635 Everyone will be free to use, copy, study and change the GNU system.
649 was written by Richard Stallman and the Free Software Foundation.
650 For detailed credits and acknowledgments, see the GNU Emacs manual.
658 1995, 1999-2013 Free Software Foundation, Inc.
660 Permission is granted to make and distribute verbatim copies of this
661 document provided the copyright notice and this permission notice are
662 preserved on all copies.
664 Permission is granted to copy and distribute modified versions of
665 this document under the conditions for verbatim copying, provided that
666 the entire resulting derived work is distributed under the terms of
667 a permission notice identical to this one.
669 Permission is granted to copy and distribute translations of this
670 document into another language, under the above conditions for
671 modified versions, except that this permission notice may be stated
672 in a translation approved by the Free Software Foundation.