I'm currently stuck with not finding the init.el file, how do I find it on Windows and how do I load it?
1 Answer
If you run M-x describe-variable user-emacs-directory
or the following commands in a emacs-lisp buffer, you will find it.
(find-file (expand-file-name "init.el" user-emacs-directory))
(describe-variable 'user-emacs-directory)
It's usually in %AppData%\.emacs.d
but could be in %UserProfile%\.emacs.d
if you run emacs from Start-menu.
In Powershell, dir $env:AppData\.emacs.d
.
Load it with (load-file (expand-file-name "init.el" user-emacs-directory))
~/.emacs.d
directory exist?