[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

emacs load-path



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"


Reply to: