Next: Initial Options, Up: Emacs Invocation
Here is a table of action arguments:
When Emacs starts up, it displays the startup buffer in one window, and the buffer visiting file in another window (see Windows). If you supply more than one file argument, the displayed file is the last one specified on the command line; the other files are visited but their buffers are not shown.
If the startup buffer is disabled (see Entering Emacs), then
starting Emacs with one file argument displays the buffer visiting
file in a single window. With two file arguments, Emacs
displays the files in two different windows. With more than two file
arguments, Emacs displays the last file specified in one window, plus
another window with a Buffer Menu showing all the other files
(see Several Buffers). To inhibit using the Buffer Menu for this,
change the variable inhibit-startup-buffer-menu
to t
.
load
.
If file is not an absolute file name, Emacs first looks for it
in the current directory, then in the directories listed in
load-path
(see Lisp Libraries).
Warning: If previous command-line arguments have visited
files, the current directory is the directory of the last file
visited.
load-path
.
If you specify multiple ‘-L’ options, Emacs preserves the
relative order; i.e., using ‘-L /foo -L /bar’ results in
a load-path
of the form ("/foo" "/bar" ...)
.
If dir begins with ‘:’, Emacs removes the ‘:’ and
appends (rather than prepends) the remainder to load-path
.
(On MS Windows, use ‘;’ instead of ‘:’; i.e., use
the value of path-separator
.)