Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
emacs-lisp-mode-hook shouldn't interfere with startup #219
Because of the collection of packages I have installed, emacs startup for me looks like this:
In a perfect world, yes, emacs-lisp-mode customizations would be made after startup, and hooks would not be inserted when they could trigger errors. There are ways I could arrange the dependencies so that this situation would not come to pass. However, in the interests of the Principle of Least Surprise, I argue that the above is a bug.
It seems this is not a new problem. The byte-code-cache library on EmacsWiki contains code to disable emacs-lisp-mode-hook during byte-compiling. I believe this to be the simplest solution for my problem. Attached is a patch that does this when el-get byte-compiles a file.
I think reasonable people could disagree as to whether this is the most correct approach. Specifically:
In conclusion, I submit that the above patches (which disable emacs-lisp-mode-hook when manipulating autoloads/byte-compiling are good and should be applied.