[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#7665: Emacs: add command line option -L to set more paths to load-pa
bug#7665: Emacs: add command line option -L to set more paths to load-path
Sat, 18 Dec 2010 13:24:49 +0200
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)
2010-12-18 00:05 Stefan Monnier <address@hidden>:
| > An example:
| > emacs -L ~/elisp/package -L ~/.emacs.d/downloaded -l my-test.el
| I don't understand this example: why ~/elisp/package and
| ~/.emacs.d/downloaded? What are these directories and how are they
| related to my-test.el?
Just like Drew explained. The above would effectively do:
(add-to-list 'load-path "~/elisp/package")
(add-to-list 'load-path "~/.emacs.d/downloaded")
Paths and file names in the example were arbitrary and non-important.
The -L would also be useful for setting load-path prior byte
compiling files that require other files.