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 1


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))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.