29: How do I debug a .emacs file? First start Emacs with the `-q' command line option. Then, in the *scratch* buffer, type the following: (setq debug-on-error t) LFD (load-file "~/.emacs") LFD (Type LFD by pressing C-j.) If you have an error in your .emacs file, this will invoke the debugger when the error occurs. If you don't know how to use the debugger do (setq stack-trace-on-error t) instead. WARNING: this will not discover errors caused by trying to do something that requires the terminal/window-system initialization code to have been loaded. See question 129.