profile
viewpoint

Ask questions'No such file or directory' when starting doom on windows

I cloned branch develop again on windows 10. After running doom quickstart (174 packages were downloaded), running emacs throws the following error:

image

Failed to load deferred package server: (file-missing Cannot open load file No such file or directory ~/EmacsConf/.emacs.d/core/autoload/buffers)

hlissner/doom-emacs

Answer questions Simon-Thompson

(note: I'm new to Emacs and Doom, so more experienced people feel free to bring corrections)

Seems to be a default-directory issue. When running from the windows shortcut for emacs, mine gave

Failed to load deferred package server: (file-missing Cannot open load file No such file or directory ~/AppData/Roaming/.emacs.d/core/autoload/buffers)

When running emacs from a bash shell inside of "C:\Users\Simon\AppData\Roaming\.emacs.d", Doom opens correctly and runs without error (though it can't seem to find the all-the-icons fonts, even after installing them). This is thanks to emacs setting the default-directory to the directory you're in when starting from the command line.

If you want that behaviour when you start it from anywhere, add this to your .emacs.d/init.el file:

(setq default-directory "C:/Users/YOUR_USER/.emacs.d")

Replacing your_user with your own user, of course.

With this change, I can start Doom Emacs from bash while in any directory =]

useful!
source:https://uonfu.com/
answerer
Simon Thompson Simon-Thompson Contractor - Software Developer Montreal, Quebec
Github User Rank List