| Linux / Unix Command: emacs |
SYNOPSIS
% emacs [ command-line switches ] [ files ... ]
DESCRIPTION
The emacs text editor, and advanced and sophisticated text editor. Emacs may
seem rich or bloated, depending on your point of view. There are likely 3 versions
of emacs installed on your system: (1) text-only: type emacs in a text (not
X-windows) terminal; (2) graphical-mode: type emacs in an X-windows terminal
(fairly usable even for a newbie if you take some time to learn it); and (3)
X-windows mode: type xemacs in an X-windows terminal. Emacs comes with a built-in
tutorial. Exit emacs with Ctrl-C.
OPTIONS
file
Edit file.+number:
Go to the line specified by number (do not insert a space between the "+" sign and the number).-q
Do not load an init file.-u
user Load user's init file.-t
file Use specified file as the terminal instead of using stdin/stdout. This must be the first argument specified in the command line.-name name
Specifies the name which should be assigned to the initial Emacs window. This controls looking up X resources as well as the window title.-title name
Specifies the title for the initial X window.-r
Display the Emacs window in reverse video.-i
Use the "kitchen sink" bitmap icon when iconifying the Emacs window.-font font, -fn font
Set the Emacs window's font to that specified by font. You will find the various X fonts in the /usr/lib/X11/fonts directory. Note that Emacs will only accept fixed width fonts. Under the X11 Release 4 font-naming conventions, any font with the value "m" or "c" in the eleventh field of the font name is a fixed width font. Furthermore, fonts whose name are of the form widthxheight are generally fixed width, as is the font fixed. See xlsfonts(1) for more information.When you specify a font, be sure to put a space between the switch and the font name.
-b pixels
Set the Emacs window's border width to the number of pixels specified by pixels. Defaults to one pixel on each side of the window.-ib pixels
Set the window's internal border width to the number of pixels specified by pixels. Defaults to one pixel of padding on each side of the window.-geometry geometry
Set the Emacs window's width, height, and position as specified. The geometry specification is in the standard X format; see X(1) for more information. The width and height are specified in characters; the default is 80 by 24.-fg color
On color displays, sets the color of the text. See the file /usr/lib/X11/rgb.txt for a list of valid color names.-bg color
On color displays, sets the color of the window's background.-bd color
On color displays, sets the color of the window's border.-cr color
On color displays, sets the color of the window's text cursor.-ms color
On color displays, sets the color of the window's mouse cursor.-d displayname, -display displayname
Create the Emacs window on the display specified by displayname. Must be the first option specified in the command line.-nw
Tells Emacs not to use its special interface to X. If you use this switch when invoking Emacs from an xterm(1) window, display is done in that window. This must be the first option specified in the command line.See man page for more options.
EXAMPLE
% emacs
Starts up emacs with default settings.
Important: Use the man command (% man) to see how a command is used on your particular computer.

