--- Begin Message ---
Subject: |
Emacs: add command line option -L to set more paths to load-path |
Date: |
Fri, 17 Dec 2010 19:50:10 +0200 |
Package: emacs
Version: 23.2+1-5.1
Severity: wishlist
To use and test packages outside of standard Emacs installation
directories, it would be nice to have option -L (like in linkers) to
prepend paths easily to load-path.
An example:
emacs -L ~/elisp/package -L ~/.emacs.d/downloaded -l my-test.el
The long version of the option could be names:
--load-path
-- System Information
Debian Release: squeeze/sid
APT Prefers testing
APT policy: (990, testing) (500, unstable) (1, experimental)
Architecture: amd64
Kernel: Linux picasso 2.6.32-5-amd64 #1 SMP Fri Sep 17 21:50:19 UTC 2010 x86_64
GNU/Linux
Locale: LANG=en_DK.UTF-8
-- Versions of packages `emacs depends on'.
Depends:
emacs23 23.2+1-5.1 GNU Emacs is the extensible self-documenting
emacs23-lucid 23.2+1-5.1 GNU Emacs is the extensible self-documenting
emacs23-nox 23.2+1-5.1 GNU Emacs is the extensible self-documenting
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#7665: Emacs: add command line option -L to set more paths to load-path |
Date: |
Sat, 23 Feb 2013 19:59:28 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Version: 19.29
Jari Aalto wrote:
> directories, it would be nice to have option -L (like in linkers) to
> prepend paths easily to load-path.
>
> An example:
>
> emacs -L ~/elisp/package -L ~/.emacs.d/downloaded -l my-test.el
[...]
> The above would effectively do:
>
> (add-to-list 'load-path "~/elisp/package")
> (add-to-list 'load-path "~/.emacs.d/downloaded")
> (load-library "my-test.el")
Emacs has had this feature since version 19.29...
--- End Message ---