summary refs log tree commit diff
path: root/emacs.d/init.el
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2016-11-21 16:33:58 -0800
committerFranck Cuny <franck.cuny@gmail.com>2016-11-21 16:33:58 -0800
commitecd3f7acb81d0f87496bdfa20830b7ec29ce99d7 (patch)
tree3bf7476bb6c87fab2c64c44673e20d9eeb9ed9f0 /emacs.d/init.el
parent[Emacs] Don't hard code string. (diff)
downloademacs.d-ecd3f7acb81d0f87496bdfa20830b7ec29ce99d7.tar.gz
[Emacs] Display how long it takes to load the configuration
Instead of writing a custom function, use the emacs-startup-hook for
that.
Diffstat (limited to '')
-rw-r--r--emacs.d/init.el6
1 files changed, 1 insertions, 5 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index 6f6d739..a17df3a 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -1,6 +1,3 @@
-;; when did we start this session ?
-(defconst emacs-start-time (current-time))
-
 ;; setup packages
 (require 'package)
 (setq package-user-dir (expand-file-name "var/elpa" user-emacs-directory)
@@ -586,5 +583,4 @@
 
   :mode ("\\.ya?ml\\'" . yaml-mode))
 
-(fc/load-time emacs-start-time)
-(fc/emacs-is-ready)
+(add-hook 'emacs-startup-hook #'fc/load-time)