Closed ReneFroger closed 9 years ago
I found much better alternative, propbably it is even faster and more clean codebase without the need to put emacs-load-start
and startup-time
in your init.el.
Add the following in your setup-hooks
:
(defun startup-time()
(message (concat "init.el loaded in " (emacs-init-time) ".")))
)
(add-hook 'emacs-startup-hook 'startup-time)
Thanks for that suggestion! I am now using that in my config. I had stolen that earlier snippet from somewhere when I had just started learning elisp :)
Hi there! Thanks for sharing your Emacs configuration.
I looked at your .emacs configuration to get more insipiration. I liked the ability to record the startup time of the emacs. So I wanted to steal your snippet of code. Currently I have the following in my init.el
Everything worked fine at all. I wanted to get the milliseconds, so I see
Emacs started up in 3.11 seconds
insteadEmacs started up in 3 seconds
in the messages buffer. So I replaced the%d
with the floating%f
. However, I get zero decimals. I could't find anything in the documentation of destructuring-bind, to pass the milliseconds.Any suggestion?