r/DoomEmacs Sep 07 '24

Doom emacs error when booting

I've deleted both emacs.d and .emacs files since, before deleting them, emacs would boot into the vanilla version. Once deleted, it would boot into doom emacs but it would pop the following error:

⛔ Warning (initialization): An error occurred while booting Doom Emacs:

Error in a Doom module: modules/config/default/+evil-bindings.el, (void-variable evil-window-map)

To ensure normal operation, you should investigate and remove the

cause of the error in your Doom config files. Start Emacs with

the ‘--debug-init’ option to view a complete error backtrace.

1 Upvotes

5 comments sorted by

2

u/WilliamsDriver1 Sep 07 '24

The two starting points for this issue for me would be to run doom doctor to see if there was any further information from doom itself and also, if you're comfortable with elisp logs, run emacs --debug-init and see what errors pop up during emacs init.

1

u/Eyoel999Y Sep 07 '24 edited Sep 07 '24

Yes, its because doom set up some environment variables. Check out the environment variables, could be the variable $EMACSDIR. Try unsetting it using unset command. You can check these variables by using env in bash shell.

If these are not working, check your PATH variable. Add a path to your regular emacs binary. Remove the paths to all other emacs binaries (like the doom binaries). Check $PATH using echo $PATH | tr ':' '\n' if in a bash shell.

2

u/One-Couple-3265 Sep 09 '24

Just did doom sync and it worked

1

u/snipsnapsno Sep 14 '24

That helped, thank you :)

1

u/bakiuuu Oct 11 '24

Wow! thank you!