I have a ~/.emacs.d/init.el which includes:-
blabla.el is in ~/.emacs.d/
When I start
I can use a full path to load the file, but do I need to? I thought emacs would look in emacs home directory (~/.emacs.d/) to find files. What have I missed?
The above is a copy of a question asked on emacs stackexchange. After following the advice given, I still get the same error msg. Just wondering if this is a quirk in the FreeBSD build... I'm using emacs v29.1.
~/.emacs.d/init.el:-
~/.emacs.d/lisp/blabla.el:-
In emacs,
This very basic error is driving me nuts.
Could anyone replicate this error, or suggest what I'm doing wrong?
Code:
(load-file "blabla.el")
blabla.el is in ~/.emacs.d/
When I start
emacs
I get this error:-File is missing: Cannot open load file, No such file or directory, /root/blabla.el
I can use a full path to load the file, but do I need to? I thought emacs would look in emacs home directory (~/.emacs.d/) to find files. What have I missed?
The above is a copy of a question asked on emacs stackexchange. After following the advice given, I still get the same error msg. Just wondering if this is a quirk in the FreeBSD build... I'm using emacs v29.1.
~/.emacs.d/init.el:-
Code:
load-theme ' leuven t)
(add-to-list 'load-path "~/.emacs.d/lisp")
(split-window-horizontally)
(load-file "blabla.el")
~/.emacs.d/lisp/blabla.el:-
Code:
(message "hello")
In emacs,
C-h v load-path
shows ~/.emacs.d/lisp as the first directory.
Code:
root@X1:~ # ls -al ~/.emacs.d/lisp/blabla.el
-rw-r--r-- 1 root wheel 18 Sep 9 08:43 /root/.emacs.d/lisp/blabla.el
This very basic error is driving me nuts.
Could anyone replicate this error, or suggest what I'm doing wrong?