How to find a bug in “.emacs” or “init.el”?
问题 Sometimes when I open Emacs, Emacs initialization fail. That is because .emacs or init.el files have a bug. (My bugs often come from just mistyping.) I want to find the bug in .emacs or init.el . Is there any way to do this? 回答1: To find out what part of your init file ( ~/.emacs ) is causing the behavior you see, bisect your init file recursively : First comment-out half, to see which half is responsible, then 3/4, to see which quarter is responsible,... To comment out a region of text (e.g.