Re: emacs load-path
First make sure they'll load after running emacs and hitting meta-x and
keying in the file names. Then read the original .el files for
instructions. I expect you'll find code in them starting with (require
that needs to be inserted in your .emacs file to have these load on
start up.
On Fri, 2 Dec 2011, Nicolas Bercher wrote:
> 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"
>
>
>
----------------------------------------------------------------
Jude <jdashiel-at-shellworld-dot-net>
<http://www.shellworld.net/~jdashiel/nj.html>
Reply to: