When there's an error in one of my init files, I get a vague message like this when I launch Emacs:
Warning (initialization): An error occurred while loading /Users/im/.emacs.d/init.elc:
(wrong-type-argument listp helm-find-files-actions)
It doesn't tell me which of my many configuration files contains the error, or which line. Searching my files doesn't help because, guess what, the function
helm-find-files-actions doesn't actually appear in any of my init files. To track down the offending line of code, I have to do
$ emacs --debug-init.
Is there no way to get Emacs to automatically tell me where the offending line is without having to quit and run
$ emacs --debug-init? I know I can bisect + eval the files manually but that's even slower. It would be so much better if, when there's an error in one of my init files, Emacs could:
- tell me which init file
- tell me the line number that contains the error
- ideally, open that init file and take me to the offending line
Is this possible with Emacs, or am I living in a fantasy world?