Re: emacs load-path
Nicolas Bercher writes:
> Something is driving me crazy as it seems to be so trivial.
>
> I have a bunch of .el files I'd like emacs to load on startup (emacs-22,
> Lenny). I saved them to ~/.emacs.d/elisp/:
>
> $ ls -l ~/.emacs.d/elisp/
> total 8
> -rwxr-xr-x 1 nbercher nbercher 496 déc 2 10:23 nb-org-mode.el
> -rwxr-xr-x 1 nbercher nbercher 942 déc 2 10:23 nb-windows.el
>
> So I added the following to my ~/.emacs:
>
> (add-to-list 'load-path "~/.emacs.d/elisp/")
>
> I can check it is taken into account:
>
> C-h v load-path
> [...]
> Its value is
> ("/home/nbercher/.emacs.d/elisp/"
> [...]
>
> I can also check that my libraries can be found by emacs:
>
> M-x locate-library RET nb-org-mode.el
> Library is file ~/.emacs.d/elisp/nb-org-mode.el
>
> But, emacs don't load them on startup, what do I miss?
>
> Thanks!
> Nicolas
>
> PS: I lauch emacs with "emacs -nw"
Unless someone comes with something better, I think that you also have
to load every one of your files explicitly with load-file.
Take a look at https://www.gnu.org/s/libtool/manual/emacs/Init-File.html .
--
Alberto
Reply to: