]> git.eshelyaron.com Git - dotfiles.git/commitdiff
Use emacs-init-time to show startup time
authorEshel Yaron <eshel@areionsec.com>
Sat, 14 May 2022 14:25:41 +0000 (17:25 +0300)
committerEshel Yaron <eshel@areionsec.com>
Sat, 14 May 2022 14:25:41 +0000 (17:25 +0300)
.emacs.d/esy.org

index e7c6b3631cb17a79e0530983ce8bb305d6229539..fb96d1fde715167e42f40001a92d34364fdd31d2 100644 (file)
@@ -5,7 +5,6 @@
 #+KEYWORDS: eshel emacs configuration literate babel org elisp
 #+OPTIONS: ^:{}
 #+STARTUP: overview indent
-#+MACRO: init-time (float-time (time-subtract after-init-time before-init-time))
 
 * Introduction
 :PROPERTIES:
@@ -41,13 +40,22 @@ After the first run of the provided =init.el=, modifications to
 restarts. See also [[#bootstrap][Literate config bootstrap]].
 
 * Startup time
+:PROPERTIES:
+:CUSTOM_ID: startup-time
+:END:
 
 I try to keep Emacs lean and fast. One of metric of interest with
 regards to Emacs' speed is its /startup/ speed, i.e. how long it takes
 between launching Emacs and being able to actually use it. The startup
 time of my current Emacs session (in which I am exporting this file)
-is *{{{init-time}}}*.
+is shown below:
+
+#+begin_src emacs-lisp :tangle no :exports both
+  (emacs-init-time)
+#+end_src
 
+For more information about Emacs run time measurement, see [[info:elisp#Processor Run
+ Time][elisp#Processor Run Time]].
 
 
 * Elisp Header
@@ -187,7 +195,10 @@ For further information about Elisp headers, see [[info:elisp#Library
   (esy/setup-history)
 #+end_src
 
-** Persist Git log messages history across emacs sessions
+** Persist Git log messages history across Emacs sessions
+:PROPERTIES:
+:CUSTOM_ID: save-log-edit-comment-ring
+:END:
 
 #+begin_src emacs-lisp
   (with-eval-after-load 'log-edit