summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-09-29 20:15:50 +0100
committerAlan Pearce2013-09-29 20:15:50 +0100
commit873e1723a54845b58aae7feb1d48efce5f6d1fc8 (patch)
tree9bc28e6287ff75e401b42fcdb4ff9f0591deca0e /emacs
parent141a4f481e4a9cce21b59b3c45a3fa3b361d008c (diff)
downloaddotfiles-873e1723a54845b58aae7feb1d48efce5f6d1fc8.tar.lz
dotfiles-873e1723a54845b58aae7feb1d48efce5f6d1fc8.tar.zst
dotfiles-873e1723a54845b58aae7feb1d48efce5f6d1fc8.zip
Emacs: Set smex variables before calling smex-initialize
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/emacs/init.el b/emacs/init.el
index b136200..8141a2f 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -569,16 +569,17 @@ Values: `desktop', `server', `laptop'")
          ("M-X" . smex-major-mode-commands)
          ("C-c M-x" . execute-extended-command))
   :config (progn
-            (setq smex-history-length 100
-                  smex-save-file (concat user-emacs-directory
-                                         "smex-items"))
             (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))
-  :init (smex-initialize))
+  :init (progn
+          (setq smex-history-length 100
+                smex-save-file (concat user-emacs-directory
+                                       "smex-items"))
+          (smex-initialize)))
 
 ;;;; Modeline