about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.org20
1 files changed, 20 insertions, 0 deletions
diff --git a/config.org b/config.org index 5225df9..6386b86 100644 --- a/config.org +++ b/config.org
@@ -1185,6 +1185,26 @@ I'm going to try it for now.
1185 #'hook--gc-when-unfocused) 1185 #'hook--gc-when-unfocused)
1186#+end_src 1186#+end_src
1187 1187
1188** Startup time
1189
1190Just for me to know, and in case I ever want to make it snappier. This function
1191is from [[https://blog.d46.us/advanced-emacs-startup/][Joe Schafer]].
1192
1193As a benchmark, on Windows, =emacs -Q= starts up in *0.188585* seconds, and
1194=emacs -q= starts in *0.373297*.
1195
1196#+begin_src emacs-lisp :noweb-ref hooks
1197 (defun hook--message-startup-time ()
1198 "Message Emacs' startup time."
1199 (message "Emacs ready in %s with %d garbage collections."
1200 (format "%.2f seconds"
1201 (float-time (time-subtract after-init-time
1202 before-init-time)))
1203 gcs-done))
1204
1205 (add-hook 'emacs-startup-hook #'hook--message-startup-time)
1206#+end_src
1207
1188* Files 1208* Files
1189 1209
1190** Encoding 1210** Encoding