summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-09-02 09:32:58 +0100
committerAlan Pearce2013-09-02 09:32:58 +0100
commitc0b1db9dd382dfa75980888433936645ac17bf97 (patch)
tree3911f82292cf9b3a2bf12303450efbef549e55ac /emacs
parent8214342af8a51b9ed63d9bea27cbf7b8051f0b4b (diff)
downloaddotfiles-c0b1db9dd382dfa75980888433936645ac17bf97.tar.lz
dotfiles-c0b1db9dd382dfa75980888433936645ac17bf97.tar.zst
dotfiles-c0b1db9dd382dfa75980888433936645ac17bf97.zip
Emacs: initialise smex on startup for faster usage
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 2d80bc8..337d663 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -559,13 +559,13 @@ Values: `desktop', `server', `laptop'")
             (setq smex-history-length 100
                   smex-save-file (concat user-emacs-directory
                                          "smex-items"))
-            (smex-initialize)
             (setq smex-key-advice-ignore-menu-bar t
                   smex-auto-update nil)
             (defun smex-update-after-load (unused)
               (if (boundp 'smex-cache)
                   (smex-update)))
-            (add-hook 'after-load-functions 'smex-update-after-load)))
+            (add-hook 'after-load-functions 'smex-update-after-load))
+  :init (smex-initialize))
 
 ;;;; Modeline