1 .\" See section COPYING for copyright and redistribution information.
2 .TH EMACS 1 "2007 April 13" "GNU Emacs 23.1.94"
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 given its
45 functionality, Help Key (CTRL-h k) describes a given key sequence, and
46 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 .BR \-q ", " \-\-no\-init\-file
83 Do not load an init file.
86 Do not load the site-wide startup file.
89 Do not load a saved desktop.
91 .BR \-Q ", " \-\-quick
92 Similar to "\-q \-\-no\-site\-file \-\-no\-splash". Also, avoid
93 processing X resources.
96 Do not display a splash screen during start-up.
101 Lisp debugger during the processing of the user init file
103 This is useful for debugging problems in the init file.
105 .BI \-u " user\fR,\fP " \-\-user " user"
110 .BI \-t " file\fR,\fP " \-\-terminal " file"
113 as the terminal instead of using stdin/stdout.
114 This must be the first argument specified in the command line.
117 Start Emacs as a daemon, enabling the Emacs server and disconnecting
118 from the terminal. You can then use the emacsclient command to
119 connect to the server (see
120 .BR emacsclient (1)).
125 version information and exit.
128 Display this help and exit.
131 The following options are Lisp-oriented
132 (these options are processed in the order encountered):
135 .BI \-f " function\fR,\fP " \-\-funcall " function"
136 Execute the lisp function
139 .BI \-l " file\fR,\fP " \-\-load " file"
140 Load the lisp code in the file
143 .BI \-\-eval " expr\fR,\fP " \-\-execute " expr"
144 Evaluate the Lisp expression
148 The following options are useful when running
155 The editor will send messages to stderr.
156 You must use \-l and \-f options to specify files to execute
157 and functions to call.
159 .BI \-\-script " file"
162 as an Emacs Lisp script.
164 .BI \-\-insert " file"
167 into the current buffer.
174 .BI \-L " dir\fR,\fP " \-\-directory " dir"
177 to the list of directories
179 searches for Lisp files.
182 .\" START DELETING HERE IF YOU'RE NOT USING X
183 .SS Using Emacs with X
185 has been tailored to work well with the X window system.
188 from under X windows, it will create its own X window to
190 You will probably want to start the editor as a background
191 process so that you can continue using your original window.
194 can be started with the following X switches:
198 Specify the name which should be assigned to the initial
201 This controls looking up X resources as well as the window title.
203 .BI \-T " name\fR,\fP " \-\-title " name"
204 Specify the title for the initial X window.
206 .BR \-r ", " \-rv ", " \-\-reverse\-video
209 window in reverse video.
211 .BI \-fn " font\fR,\fP " \-\-font " font"
214 window's font to that specified by
216 You will find the various
219 .I /usr/lib/X11/fonts
223 will only accept fixed width fonts.
224 Under the X11 Release 4 font-naming conventions, any font with the
225 value "m" or "c" in the eleventh field of the font name is a fixed
227 Furthermore, fonts whose name are of the form
229 are generally fixed width, as is the font
233 for more information.
235 When you specify a font, be sure to put a space between the
236 switch and the font name.
238 .BI \-\-xrm " resources"
239 Set additional X resources.
241 .BI "\-\-color\fR,\fP \-\-color=" mode
242 Override color mode for character terminals;
244 defaults to `auto', and can also be `never', `auto', `always',
245 or a mode name like `ansi8'.
247 .BI \-bw " pixels\fR,\fP " \-\-border\-width " pixels"
250 window's border width to the number of pixels specified by
252 Defaults to one pixel on each side of the window.
254 .BI \-ib " pixels\fR,\fP " \-\-internal\-border " pixels"
255 Set the window's internal border width to the number of pixels specified
258 Defaults to one pixel of padding on each side of the window.
260 .BI \-g " geometry\fR,\fP " \-\-geometry " geometry"
263 window's width, height, and position as specified.
264 The geometry specification is in the standard X format; see
266 for more information.
267 The width and height are specified in characters; the default is
269 See the Emacs manual, section "Options for Window Size and Position",
270 for information on how window sizes interact
271 with selecting or deselecting the tool bar and menu bar.
273 .BI \-lsp " pixels\fR,\fP " \-\-line\-spacing " pixels"
274 Additional space to put between lines.
276 .BR \-vb ", " \-\-vertical\-scroll\-bars
277 Enable vertical scrollbars.
279 .BR \-fh ", " \-\-fullheight
280 Make the first frame as high as the screen.
282 .BR \-fs ", " \-\-fullscreen
283 Make the first frame fullscreen.
285 .BR \-fw ", " \-\-fullwidth
286 Make the first frame as wide as the screen.
288 .BR \-mm ", " \-\-maximized
289 Maximize the first frame, like "\-fw \-fh".
291 .BI \-fg " color\fR,\fP " \-\-foreground\-color " color"
292 On color displays, set the color of the text.
295 .I M\-x list\-colors\-display
296 for a list of valid color names.
298 .BI \-bg " color\fR,\fP " \-\-background\-color " color"
299 On color displays, set the color of the window's background.
301 .BI \-bd " color\fR,\fP " \-\-border\-color " color"
302 On color displays, set the color of the window's border.
304 .BI \-cr " color\fR,\fP " \-\-cursor\-color " color"
305 On color displays, set the color of the window's text cursor.
307 .BI \-ms " color\fR,\fP " \-\-mouse\-color " color"
308 On color displays, set the color of the window's mouse cursor.
310 .BI \-d " displayname\fR,\fP " \-\-display " displayname"
313 window on the display specified by
315 Must be the first option specified in the command line.
317 .BR \-nbi ", " \-\-no\-bitmap\-icon
318 Do not use picture of gnu for Emacs icon.
325 .BR \-nbc ", " \-\-no\-blinking\-cursor
326 Disable blinking cursor.
328 .BR \-nw ", " \-\-no\-window\-system
331 not to create a graphical frame.
332 If you use this switch when invoking
336 window, display is done in that window.
338 .BR \-D ", " \-\-basic\-display
339 This option disables many display features; use it for
345 default values for your
351 Use the following format:
353 .RI emacs. keyword : value
357 specifies the default value of
360 lets you set default values for the following keywords:
363 .BR background " (class " Background )
365 sets the window's background color.
367 .BR bitmapIcon " (class " BitmapIcon )
372 the window will iconify into the "kitchen sink."
374 .BR borderColor " (class " BorderColor )
376 sets the color of the window's border.
378 .BR borderWidth " (class " BorderWidth )
379 Sets the window's border width in pixels.
381 .BR cursorColor " (class " Foreground )
383 sets the color of the window's text cursor.
385 .BR cursorBlink " (class " CursorBlink )
386 Specifies whether to make the cursor blink.
393 to turn cursor blinking off.
395 .BR font " (class " Font )
396 Sets the window's text font.
398 .BR foreground " (class " Foreground )
400 sets the window's text color.
402 .BR fullscreen " (class " Fullscreen )
403 The desired fullscreen size.
404 The value can be one of
409 which correspond to the command-line options `\-fs', `\-fw', and
410 `\-fh', respectively.
411 Note that this applies to the initial frame only.
413 .BR geometry " (class " Geometry )
414 Sets the geometry of the
416 window (as described above).
418 .BR iconName " (class " Title )
419 Sets the icon name for the
423 .BR internalBorder " (class " BorderWidth )
424 Sets the window's internal border width in pixels.
426 .BR lineSpacing " (class " LineSpacing )
427 Additional space ("leading") between lines, in pixels.
429 .BR menuBar " (class " MenuBar )
430 Gives frames menu bars if
432 don't have menu bars if
434 See the Emacs manual, sections "Lucid Resources" and "LessTif
435 Resources", for how to control the appearance of the menu bar
438 .BR minibuffer " (class " Minibuffer )
441 don't make a minibuffer in this frame.
442 It will use a separate minibuffer frame instead.
444 .BR paneFont " (class " Font )
445 Font name for menu pane titles, in non-toolkit versions of
448 .BR pointerColor " (class " Foreground )
450 sets the color of the window's mouse cursor.
452 .BR privateColormap " (class " PrivateColormap )
455 use a private color map, in the case where the "default
462 .BR reverseVideo " (class " ReverseVideo )
467 the window will be displayed in reverse video.
469 .BR screenGamma " (class "ScreenGamma )
470 Gamma correction for colors, equivalent to the frame parameter
473 .BR scrollBarWidth " (class "ScrollBarWidth )
474 The scroll bar width in pixels, equivalent to the frame parameter
475 `scroll\-bar\-width'.
477 .BR selectionFont " (class " SelectionFont )
478 Font name for pop-up menu items, in non-toolkit versions of
480 (For toolkit versions, see the Emacs manual, sections
481 "Lucid Resources" and "LessTif Resources".)
483 .BR selectionTimeout " (class " SelectionTimeout )
484 Number of milliseconds to wait for a selection reply.
485 A value of 0 means wait as long as necessary.
487 .BR synchronous " (class " Synchronous )
488 Run Emacs in synchronous mode if
490 Synchronous mode is useful for debugging X problems.
492 .BR title " (class " Title )
493 Sets the title of the
497 .BR toolBar " (class " ToolBar )
498 Number of lines to reserve for the tool bar.
500 .BR useXIM " (class " UseXIM )
501 Turns off use of X input methods (XIM) if
506 .BR verticalScrollBars " (class " ScrollBars )
507 Gives frames scroll bars if
509 suppresses scroll bars if
512 .BR visualClass " (class " VisualClass )
513 Specify the "visual" that X should use.
514 This tells X how to handle colors.
515 The value should start with one of
527 is the number of color planes.
531 You can order printed copies of the GNU Emacs Manual from the Free
532 Software Foundation, which develops GNU software.
533 See the file ORDERS for ordering information.
535 Your local Emacs maintainer might also have copies available.
536 As with all software and publications from FSF, everyone is permitted
537 to make and distribute copies of the Emacs manual.
538 The TeX source to the manual is also included in the Emacs source
543 /usr/local/share/info \(em files for the Info documentation browser.
544 The complete text of the Emacs reference manual is included in a
545 convenient tree structured form.
546 Also includes the Emacs Lisp Reference Manual, useful to anyone
547 wishing to write programs in the Emacs Lisp extension language.
549 /usr/local/share/emacs/$VERSION/lisp \(em Lisp source files and
550 compiled files that define most editing commands.
551 Some are preloaded; others are autoloaded from this directory when
554 /usr/local/libexec/emacs/$VERSION/$ARCH \(em various programs that are
557 /usr/local/share/emacs/$VERSION/etc \(em various files of information.
559 /usr/local/share/emacs/$VERSION/etc/DOC.* \(em contains the documentation
560 strings for the Lisp primitives and preloaded Lisp functions
562 They are stored here to reduce the size of Emacs proper.
564 /usr/local/share/emacs/$VERSION/etc/SERVICE lists people offering
565 various services to assist users of GNU Emacs, including education,
566 troubleshooting, porting and customization.
570 There is a mailing list, bug-gnu-emacs@gnu.org, for reporting Emacs
572 But before reporting something as a bug, please try to be sure that
573 it really is a bug, not a misunderstanding or a deliberate feature.
574 We ask you to read the section ``Reporting Emacs Bugs'' near the
575 end of the reference manual (or Info system) for hints on how and
577 Also, include the version number of the Emacs you are running in
578 \fIevery\fR bug report that you send in.
579 Bugs tend actually to be fixed if they can be isolated, so it is
580 in your interest to report them in such a way that they can be
583 Do not expect a personal answer to a bug report.
584 The purpose of reporting bugs is to get them fixed for everyone
585 in the next release, if possible.
586 For personal assistance, look in the SERVICE file (see above) for
587 a list of people who offer it.
589 Please do not send anything but bug reports to this mailing list.
590 For more information about Emacs mailing lists, see the
591 file /usr/local/share/emacs/$VERSION/etc/MAILINGLISTS.
596 is free; anyone may redistribute copies of
599 anyone under the terms stated in the
601 General Public License,
602 a copy of which accompanies each copy of
605 appears in the reference manual.
609 may sometimes be received packaged with distributions of Unix systems,
610 but it is never included in the scope of any license covering those
612 Such inclusion violates the terms on which distribution is permitted.
613 In fact, the primary purpose of the General Public License is to
614 prohibit anyone from attaching any other restrictions to
618 Richard Stallman encourages you to improve and extend
621 you contribute your extensions to the GNU library.
622 Eventually GNU (Gnu's Not Unix) will be a complete replacement
624 Everyone will be free to use, copy, study and change the GNU system.
638 was written by Richard Stallman and the Free Software Foundation.
639 For detailed credits and acknowledgements, see the GNU Emacs manual.
647 1995, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
649 Free Software Foundation, Inc.
651 Permission is granted to make and distribute verbatim copies of this
652 document provided the copyright notice and this permission notice are
653 preserved on all copies.
655 Permission is granted to copy and distribute modified versions of
656 this document under the conditions for verbatim copying, provided that
657 the entire resulting derived work is distributed under the terms of
658 a permission notice identical to this one.
660 Permission is granted to copy and distribute translations of this
661 document into another language, under the above conditions for
662 modified versions, except that this permission notice may be stated
663 in a translation approved by the Free Software Foundation.
665 .\" arch-tag: 04dfd376-b46e-4924-919a-cecc3b257eaa