[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
GNU Emacs supports command line arguments to request various actions when invoking Emacs. These are for compatibility with other editors and for sophisticated activities. We don't recommend using them for ordinary editing.
Arguments starting with ‘-’ are options, and so is ‘+linenum’. All other arguments specify files to visit. Emacs visits the specified files while it starts up. The last file name on your command line becomes the current buffer; the other files are also visited in other buffers. If there are two files, they are both displayed; otherwise the last file is displayed along with a buffer list that shows what other buffers there are. As with most programs, the special argument ‘--’ says that all subsequent arguments are file names, not options, even if they start with ‘-’.
Emacs command options can specify many things, such as the size and position of the X window Emacs uses, its colors, and so on. A few options support advanced usage, such as running Lisp functions on files in batch mode. The sections of this chapter describe the available options, arranged according to their purpose.
There are two ways of writing options: the short forms that start with a single ‘-’, and the long forms that start with ‘--’. For example, ‘-d’ is a short form and ‘--display’ is the corresponding long form.
The long forms with ‘--’ are easier to remember, but longer to type. However, you don't have to spell out the whole option name; any unambiguous abbreviation is enough. When a long option takes an argument, you can use either a space or an equal sign to separate the option name and the argument. Thus, you can write either ‘--display sugar-bombs:0.0’ or ‘--display=sugar-bombs:0.0’. We recommend an equal sign because it makes the relationship clearer, and the tables below always show an equal sign.
Most options specify how to initialize Emacs, or set parameters for the
Emacs session. We call them initial options. A few options specify
things to do: for example, load libraries, call functions, or terminate
Emacs. These are called action options. These and file names
together are called action arguments. Emacs processes all the action
arguments in the order they are written. The ‘.emacs’ file can access
the values of the action arguments as the elements of a list in the variable
command-line-args
.
C.1 Action Arguments | Arguments to visit files, load libraries, and call functions. | |
C.2 Initial Options | Arguments that take effect while starting Emacs. | |
C.3 Command Argument Example | Examples of using command line arguments. | |
C.4 Resuming Emacs with Arguments | Specifying arguments when you resume a running Emacs. | |
C.5 Environment Variables | Environment variables that Emacs uses. | |
C.6 Specifying the Display Name | Changing the default display and using remote login. | |
C.7 Font Specification Options | Choosing a font for text, under X. | |
C.8 Window Color Options | Choosing display colors. | |
C.9 Options for Window Size and Position | Start-up window size, under X. | |
C.10 Internal and External Borders | Internal and external borders, under X. | |
C.11 Frame Titles | Specifying the initial frame's title. | |
C.12 Icons | Choosing what sort of icon to use, under X. | |
C.13 Other Display Options | Other display options. |
[ < ] | [ > ] | [ << ] | [Plus haut] | [ >> ] | [Top] | [Table des matières] | [Index] | [ ? ] |
Ce document a été généré par Eric Reinbold le 23 Février 2009 en utilisant texi2html 1.78.