I have seen this thread but my problem is an order of magnitude larger. Also, a newbie, I did not understand much of what was being discussed there. So, this new question.
I am running Emacs 25.2.2 on Kubuntu 17.10 on a low-range laptop computer with 4GB RAM. Consider:
user:~/ $ time nvim +qall
nvim +qall 0.63s user 0.17s system 86% cpu 0.921 total
user:~/ $ time emacs -nw -kill
emacs -nw -kill 81.70s user 9.00s system 93% cpu 1:36.84 total
user:~/ $ time emacs -nw -q -kill
emacs -nw -q -kill 0.32s user 0.07s system 10% cpu 3.636 total
Something seems to be grossly wrong with my setup. But I do not know what is it.
So, what do I need to do to bring the start-up time for emacs down to a more reasonable number?
My ~/.emacs
file contains several lines. I do not know which ones will be relevant here. So, please ask me and I will edit my question accordingly.
comment-region
to comment out our uncomment a region of code. This is a binary search - it should quickly tell you which part of your init file is problematic.(desktop-save-mode t)
was the culprit. That one line commented out brought the start up time down to less than 6s. But now I do not have access to my earlier buffers, etc. How to tame desktop-save-mode or is there an alternative