I'm a newbie in Emacs who just is familiar with basic key bindings. I'm trying to learn more. I just learned to create initial file ~/.emacs.d/init.el
and how to evaluate. But I find I need to load the initial file every time when I restart Emacs. I tried following things:
- check there is no
~/.emacs
or~/emacs.el
go to /usr/local/share/emacs/site-lisp, add a code in
subdris.el
(add-to-list 'load-path "~/.emacs.d/init.el/")
And I checked that this file is in
load-path
.
However, I still need to reload the init file every time I restart Emacs. Any suggestions?
load-path
, as it won't cause Emacs to load it, but rather to try looking for Elisp files there when someonerequire
s something.