all repos — archive/dotfiles @ c3ffd21fdc6a4e51c7f05d796cd93aa3bcb351aa

Superseded by nixfiles

Emacs: Add init benchmarking
Alan Pearce alan@alanpearce.co.uk
Sun, 29 Nov 2015 16:49:31 +0100
commit

c3ffd21fdc6a4e51c7f05d796cd93aa3bcb351aa

parent

69559a006c28f295602d89e54c36e8463807861a

1 files changed, 9 insertions(+), 6 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -44,7 +44,9 @@ (package-refresh-contents)       (package-install 'use-package))
     (require 'use-package))
   (setq use-package-verbose t
-        use-package-ensure-always-ensure t)
+        use-package-always-ensure t)
+  (use-package benchmark-init
+    :config (benchmark-init/activate))
 #+END_SRC
 
 * Customize
@@ -2391,9 +2393,10 @@ * End 
 Start a server if possible.  A daemon is already a server.
 #+BEGIN_SRC emacs-lisp
-(unless (daemonp)
-  (require 'server)
-  (if (server-running-p server-name)
-      (message "Server already appears to be running")
-    (server-start)))
+  (unless (daemonp)
+    (require 'server)
+    (if (server-running-p server-name)
+        (message "Server already appears to be running")
+      (server-start)))
+  (benchmark-init/deactivate)
 #+END_SRC