[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: .emacs not loading libraries
From: |
Emanuel Berg |
Subject: |
Re: .emacs not loading libraries |
Date: |
Sat, 17 Oct 2015 23:44:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Mart van de Wege <mvdwege@gmail.com> writes:
> Teemu had the right idea: in order to load elpa
> packages, I have to call (package-initialize) in
> .emacs. Thanks for going the trouble.
OK, but still: Without the tilde in the `load-path', it
only works because probably when loading is done the
`default-directory' *is* your HOME!
Try this:
$ touch .emacs.d/test.el
Then do this in Emacs:
(setq load-path '(".emacs.d/"))
(cd "~")
(load "test.el") ; t
(cd "..")
(load "test.el") ; nil - doesn't work
Now instead do:
(setq load-path '("~/.emacs.d/"))
(cd "~")
(load "test.el") ; t
(cd "..")
(load "test.el") ; t - works!
--
underground experts united
http://user.it.uu.se/~embe8573
Message not available