all repos — nixfiles @ c0b1db9dd382dfa75980888433936645ac17bf97

System and user configuration, managed by nix and home-manager

Emacs: initialise smex on startup for faster usage
Alan Pearce alan@alanpearce.co.uk
Mon, 02 Sep 2013 09:32:58 +0100
commit

c0b1db9dd382dfa75980888433936645ac17bf97

parent

8214342af8a51b9ed63d9bea27cbf7b8051f0b4b

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -559,13 +559,13 @@ :config (progn             (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