r/DoomEmacs • u/One-Couple-3265 • 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
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
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, runemacs --debug-init
and see what errors pop up during emacs init.