📄 emacs.1
字号:
.TH EMACS 1 "1990 November 13".UC 4.SH NAMEemacs \- GNU project Emacs.SH SYNOPSIS.B emacs[.I command-line switches] [.I file ...].br.SH DESCRIPTION.I GNU Emacsis a new version of .I Emacs,written by the author of the original (PDP-10) .I Emacs,Richard Stallman. Its user functionality encompasseseverything other .I Emacs editors do, and it is easily extensible since itsediting commands are written in Lisp..PP.I Emacshas an extensive interactive help facility,but the facility assumes that you know how to manipulate.I Emacswindows and buffers.CTRL-h (backspaceor CTRL-h) enters the Help facility. Help Tutorial (CTRL-h t)requests an interactive tutorial which can teach beginners the fundamentalsof .I Emacs in a few minutes.Help Apropos (CTRL-h a) helps youfind a command given its functionality, Help Character (CTRL-h c)describes a given character's effect, and Help Function (CTRL-h f)describes a given Lisp function specified by name..PP.I Emacs'sUndo can undo several steps of modification to your buffers, so it iseasy to recover from editing mistakes..PP.I GNU Emacs'smany special packages handle mail reading (RMail) and sending (Mail),outline editing (Outline), compiling (Compile), running subshellswithin.I Emacswindows (Shell), running a Lisp read-eval-print loop(Lisp-Interaction-Mode), and automated psychotherapy (Doctor)..PPThere is an extensive reference manual, butusers of other Emacsesshould have little trouble adapting evenwithout a copy. Users new to.I Emacswill be ableto use basic features fairly rapidly by studying the tutorial andusing the self-documentation features..PP.SM Emacs Options.PPThe following options are of general interest:.TP 8.I fileEdit.I file..TP.BI \+ numberGo to the line specified by.I number(do not insert a space between the "+" sign andthe number)..TP.B \-qDo not load an init file..TP.BI \-u " user"Load.I user'sinit file..TP.BI \-t " file"Use specified.I fileas the terminal instead of using stdin/stdout.This must be the first argument specified in the command line..PPThe following options are lisp-oriented(these options are processed in the order encountered):.TP 8.BI \-f " function"Execute the lisp function.I function..TP.BI \-l " file"Load the lisp code in the file.I file..PPThe following options are useful when running.I Emacsas a batch editor:.TP 8.BI \-batch " commandfile"Edit in batch mode using the commands found in.I commandfile.The editor will send messages to stdout.This option must be the first in the argument list..TP.B \-killExit .I Emacs while in batch mode..\" START DELETING HERE IF YOU'RE NOT USING X.PP.SM Using Emacs with X.PP.I Emacshas been tailored to work well with the X window system.If you run.I Emacsfrom under X windows, it will create its own X window todisplay in. You will probably want to start the editoras a background processso that you can continue using your original window..PP.I Emacscan be started with the following X switches:.TP 8.BI \-rn " name"Specifies the program name which should be used when looking updefaults in the user's X resources. This must be the first optionspecified in the command line..TP 8.BI \-wn " name"Specifies the name which should be assigned to the.I Emacswindow..TP 8.B \-rDisplay the.I Emacswindow in reverse video..TP.B \-iUse the "kitchen sink" bitmap icon when iconifying the.I Emacswindow..TP.BI \-font " font, " \-fn " font"Set the.I Emacswindow's font to that specified by.I font.You will find the various.I Xfonts in the.I /usr/lib/X11/fontsdirectory.Note that.I Emacswill only accept fixed width fonts.Under the X11 Release 4 font-naming conventions, any font with thevalue "m" or "c" in the eleventh field of the font name is a fixedwidth font. Furthermore, fonts whose name are of the form.IR width x heightare generally fixed width, as is the font.IR fixed .See.IR xlsfonts (1)for more information.When you specify a font, be sure to put a space between theswitch and the font name..TP.BI \-b " pixels"Set the.I Emacswindow's border width to the number of pixels specified by.I pixels.Defaults to one pixel on each side of the window..TP.BI \-ib " pixels"Set the window's internal border width to the number of pixels specifiedby .I pixels.Defaults to one pixel of padding on each side of the window..PP.TP 8.BI \-w " geometry, " \-geometry " geometry"Set the.I Emacswindow's width, height, and position as specified. The geometryspecification is in the standard X format; see.IR X (1)for more information.The width and height are specified in characters; the default is 80 by24..PP.TP 8.BI \-fg " color"On color displays, sets the color of the text.See the file.I /usr/lib/X11/rgb.txtfor a list of validcolor names..TP.BI \-bg " color"On color displays,sets the color of the window's background..TP.BI \-bd " color"On color displays,sets the color of the window's border..TP.BI \-cr " color"On color displays,sets the color of the window's text cursor..TP.BI \-ms " color"On color displays,sets the color of the window's mouse cursor..TP.BI \-d " displayname, " \-display " displayname"Create the.I Emacswindow on the display specified by.IR displayname .Must be the first option specified in the command line..TP.B \-nwTells.I Emacsnot to use its special interface to X. If you use thisswitch when invoking.I Emacsfrom an.IR xterm (1)window, display is done in that window.This must be the first option specified in the command line..PPYou can set.I Xdefault values for your.I Emacswindows in your.I \.Xresourcesfile (see.IR xrdb (1)).Use the following format:.IPemacs.keyword:value.PPwhere.I valuespecifies the default value of.I keyword..I Emacslets you set default values for the following keywords:.TP 8.B font (\fPclass\fB Font)Sets the window's text font..TP.B reverseVideo (\fPclass\fB ReverseVideo)If.I reverseVideo'svalue is set to.I on,the window will be displayed in reverse video..TP.B bitmapIcon (\fPclass\fB BitmapIcon)If.I bitmapIcon'svalue is set to.I on,the window will iconify into the "kitchen sink.".TP.B borderWidth (\fPclass\fB BorderWidth)Sets the window's border width in pixels..TP.B internalBorder (\fPclass\fB BorderWidth)Sets the window's internal border width in pixels..TP.B foreground (\fPclass\fB Foreground)For color displays,sets the window's text color..TP.B background (\fPclass\fB Background)For color displays,sets the window's background color..TP.B borderColor (\fPclass\fB BorderColor)For color displays,sets the color of the window's border..TP.B cursorColor (\fPclass\fB Foreground)For color displays,sets the color of the window's text cursor..TP.B pointerColor (\fPclass\fB Foreground)For color displays,sets the color of the window's mouse cursor..TP.B geometry (\fPclass\fB Geometry)Sets the geometry of the.I Emacswindow (as described above)..TP.B title (\fPclass\fB Title)Sets the title of the.I Emacswindow..TP.B iconName (\fPclass\fB Title)Sets the icon name for the.I Emacswindow icon..PPIf you try to set color values while using a black and white display,the window's characteristics will default as follows:the foreground color will be set to black,the background color will be set to white,the border color will be set to grey,and the text and mouse cursors will be set to black..PP.SM Using the Mouse .PPThe following lists the mouse button bindings for the.I Emacswindow under X11..in +\w'CTRL-SHIFT-middle'u+4n.ta \w'CTRL-SHIFT-middle'u+4n.ti -\w'CTRL-SHIFT-middle'u+4nMOUSE BUTTON FUNCTION.br.ti -\w'CTRL-SHIFT-middle'u+4nleft Set point..br.ti -\w'CTRL-SHIFT-middle'u+4nmiddle Paste text..br.ti -\w'CTRL-SHIFT-middle'u+4nright Cut text into X cut buffer..br.ti -\w'CTRL-SHIFT-middle'u+4nSHIFT-middle Cut text into X cut buffer..br.ti -\w'CTRL-SHIFT-middle'u+4nSHIFT-right Paste text..br.ti -\w'CTRL-SHIFT-middle'u+4nCTRL-middle Cut text into X cut buffer and kill it..br.ti -\w'CTRL-SHIFT-middle'u+4nCTRL-right Select this window, then split it into two windows. Same as typing CTRL-x 2..\" START DELETING HERE IF YOU'RE NOT USING X MENUS.br.ti -\w'CTRL-SHIFT-middle'u+4nCTRL-SHIFT-left X buffer menu--hold the buttons and keysdown, wait for menu to appear, select buffer, and release. Move mouse out ofmenu and release to cancel..br.ti -\w'CTRL-SHIFT-middle'u+4nCTRL-SHIFT-middle X help menu--pop up index card menu forEmacs help..\" STOP DELETING HERE IF YOU'RE NOT USING X MENUS.br.ti -\w'CTRL-SHIFT-middle'u+4nCTRL-SHIFT-right Select window with mouse, and delete allother windows. Same as typing CTRL-x 1..\" STOP DELETING HERE IF YOU'RE NOT USING X.PP.SH MANUALSYou can order printed copies of the GNU Emacs Manual for $15.00/copypostpaid from the Free Software Foundation, which develops GNU software(contact them for quantity prices on the manual). Their address is:.nf Free Software Foundation 675 Mass Ave. Cambridge, MA 02139.fiYour local Emacs maintainer might also have copies available. Aswith all software and publications from FSF, everyone is permitted tomake and distribute copies of the Emacs manual. The TeX source to themanual is also included in the Emacs source distribution..PP.SH FILES/usr/local/emacs/src - C source files and object files/usr/local/emacs/lisp - Lisp source files and compiled filesthat define most editing commands. Some are preloaded;others are autoloaded from this directory when used. /usr/local/emacs/man - sources for the Emacs reference manual./usr/local/emacs/etc - various programs that are used withGNU Emacs, and some files of information./usr/local/emacs/etc/DOC.* - contains the documentationstrings for the Lisp primitives and preloaded Lisp functionsof GNU Emacs. They are stored here to reduce the size ofEmacs proper./usr/local/emacs/etc/DIFF discusses GNU Emacs vs. Twenex Emacs;.br/usr/local/emacs/etc/CCADIFF discusses GNU Emacs vs. CCA Emacs;.br/usr/local/emacs/etc/GOSDIFF discusses GNU Emacs vs. Gosling Emacs..br/usr/local/emacs/etc/SERVICE lists people offering various servicesto assist users of GNU Emacs, including education, troubleshooting,porting and customization..brThese files also have information useful to anyone wishing to writeprograms in the Emacs Lisp extension language, which has not yet been fullydocumented./usr/local/emacs/info - files for the Info documentation browser(a subsystem of Emacs) to refer to. Currently not much of Unixis documented here, but the complete text of the Emacs referencemanual is included in a convenient tree structured form./usr/local/emacs/lock - holds lock files that are made for allfiles being modified in Emacs, to prevent simultaneous modificationof one file by two users./usr/local/emacs/cpp - the GNU cpp, needed for building Emacs oncertain versions of Unix where the standard cpp cannot handle longnames for macros./usr/local/emacs/shortnames - facilities for translating long names toshort names in C code, needed for building Emacs on certain versionsof Unix where the C compiler cannot handle long names for functionsor variables..\" START DELETING HERE IF YOU'RE NOT USING X/usr/lib/X11/rgb.txt - list of valid X color names..\" STOP DELETING HERE IF YOU'RE NOT USING X.PP.SH BUGSThere is a mailing list, bug-gnu-emacs@prep.ai.mit.edu on the internet(ucbvax!prep.ai.mit.edu!bug-gnu-emacs on UUCPnet), for reporting Emacsbugs and fixes. But before reporting something as a bug, please tryto be sure that it really is a bug, not a misunderstanding or adeliberate feature. We ask you to read the section ``Reporting EmacsBugs'' near the end of the reference manual (or Info system) for hintson how and when to report bugs. Also, include the version number ofthe Emacs you are running in \fIevery\fR bug report that you send in.Do not expect a personal answer to a bug report. The purpose of reportingbugs is to get them fixed for everyone in the next release, if possible.For personal assistance, look in the SERVICE file (see above) fora list of people who offer it.Please do not send anything but bug reports to this mailing list.Send requests to be added to mailing lists to the special listinfo-gnu-emacs-request@prep.ai.mit.edu (or the corresponding UUCPaddress). For more information about Emacs mailing lists, see thefile /usr/local/emacs/etc/MAILINGLISTS. Bugs tend actually to befixed if they can be isolated, so it is in your interest to reportthem in such a way that they can be easily reproduced..PPBugs that I know about are: shell will not work with programsrunning in Raw mode on some Unix versions..SH UNRESTRICTIONS.PP.I Emacs is free; anyone may redistribute copies of .I Emacs toanyone under the terms stated in the .I Emacs General Public License,a copy of which accompanies each copy of .I Emacs and which alsoappears in the reference manual..PPCopies of.I Emacsmay sometimes be received packaged with distributions of Unix systems,but it is never included in the scope of any license covering thosesystems. Such inclusion violates the terms on which distributionis permitted. In fact, the primary purpose of the General PublicLicense is to prohibit anyone from attaching any other restrictionsto redistribution of .I Emacs..PPRichard Stallman encourages you to improve and extend .I Emacs, and urges thatyou contribute your extensions to the GNU library. Eventually GNU(Gnu's Not Unix) will be a complete replacement for BerkeleyUnix.Everyone will be able to use the GNU system for free..SH SEE ALSOX(1), xlsfonts(1), xterm(1), xrdb(1).SH AUTHORS.PP.I Emacswas written by Richard Stallman and the Free Software Foundation.Joachim Martillo and Robert Krawitz added the X features.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -