Just a quickie today. If you have a large and complicated Emacs init file you might wonder how long it takes to process it. Perhaps you should compile it. Maybe it doesn’t matter. How are you to know? It turns out that—to borrow a phrase—Emacs has a command for that.
If you run 【Meta+x】 emacs-init-time
, it will tell you in the echo area (and the *Messages*
buffer) how long Emacs took to process your .emacs
or init.el
file. In my case, it was 1.5 seconds and since my Emacs has been running for 26 days, 23 hours, 47 minutes, 14 seconds (【Meta+x】 emacs-uptime
), I’m not too worried about the 1.5 seconds.
My init.el
is fairly long and loads several packages so the 1.5 seconds is reasonable even if I were starting Emacs anew each day. Does anyone have a time significantly larger (say an order of magnitude or more)? Leave a comment if you do.