Emacs: Add init benchmarking
Alan Pearce alan@alanpearce.co.uk
Sun, 29 Nov 2015 16:49:31 +0100
1 files changed, 9 insertions(+), 6 deletions(-)
jump to
M tag-emacs/emacs.d/init.org → tag-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