From 92d0a8b10eac273ebde365a563ebee278f13f622 Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sat, 14 May 2022 17:25:41 +0300 Subject: [PATCH] Use emacs-init-time to show startup time --- .emacs.d/esy.org | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.emacs.d/esy.org b/.emacs.d/esy.org index e7c6b36..fb96d1f 100644 --- a/.emacs.d/esy.org +++ b/.emacs.d/esy.org @@ -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 -- 2.39.2