So I've been using my custom config for a while now and no problems whatsoever, recently however there's a lag while loading emacs. It hangs at loading /home/<user>/.emacs.d/git_config.el (source)
for about 5mins before going through.
I'm not entirely sure what the problem is. I tried loading it in --debug-mode
but to no avail. I can get over the hang by clicking C-g
. I tried commenting out git_config.el
but then it hangs in helm.el
.
In git_config.el
it seems that it hangs at (require 'git-commit)
.
Any idea on how to go about debugging this?
(require 'git-commit)
, is that a given -- i.e., did you verify that hypothesis by commenting out the line of code and seeing if your problem with lag-time disappeared? If so, then you have your answer -- go throughgit-commit.el
and recursively bisect the file (commenting stuff out in bulk) until you find out which offending code is causing the lag-time. [You'll need to restart Emacs several times while recursively bisecting.] You may need to delete the byte-compiled file while doing your testing and then re-byte-compile when you fix it.(require `git-commit)
. But the weird part is even if I comment it out it hangs athelm.el
andprojectile.el
, so I'm wondering if the issue might be external, because I never had this problem before with the same config.