summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2023-06-21 12:59:09 +0200
committerAlan Pearce2023-06-21 12:59:09 +0200
commitba904dd7386f785e3865358549625586de2879df (patch)
treea1db59d44f913f2e3d5185c65c1cf3467d38136b /user
parent8f47d540ce6b1b56aebfa427e9f7d2d7e44e9bb4 (diff)
downloadnixfiles-ba904dd7386f785e3865358549625586de2879df.tar.lz
nixfiles-ba904dd7386f785e3865358549625586de2879df.tar.zst
nixfiles-ba904dd7386f785e3865358549625586de2879df.zip
Emacs: always trace init time
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el4
-rw-r--r--user/settings/emacs.nix1
2 files changed, 5 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 88730f1e..38a28d8c 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -30,6 +30,10 @@
 (defun quiet (original-function &rest args)
   (quietly (apply original-function args)))
 
+(use-package benchmark-init
+  :config (progn
+            (add-hook 'after-init-hook #'benchmark-init/deactivate 99)))
+
 ;;; Customize
 
 (setq custom-file (expand-file-name "custom.el" user-emacs-directory))
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index 84bfae59..872d724a 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -105,6 +105,7 @@ in
         ace-link
         apheleia
         avy
+        benchmark-init
         capf-autosuggest
         clojure-mode
         company