summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2013-09-29 21:08:15 +0100
committerAlan Pearce2013-09-29 21:08:15 +0100
commita4c0bc93085ff47092115fdf8c9cc1ac7dc70eab (patch)
tree9cc7736f71ad362660e474f6245ef0da4b3cdfe8 /emacs
parent42d7e04731c514c4abc9aa2867a4718d327a72d2 (diff)
downloaddotfiles-a4c0bc93085ff47092115fdf8c9cc1ac7dc70eab.tar.lz
dotfiles-a4c0bc93085ff47092115fdf8c9cc1ac7dc70eab.tar.zst
dotfiles-a4c0bc93085ff47092115fdf8c9cc1ac7dc70eab.zip
Emacs: fix ido initialisation
Diffstat (limited to 'emacs')
-rw-r--r--emacs/init.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 146066a..769c703 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -550,16 +550,17 @@ Values: `desktop', `server', `laptop'")
                 helm-input-idle-delay .1))
 
 (use-package ido
-  :init (bind-key* "C-x C-f" #'ido-find-file)
   :bind (("C-x b"   . ido-switch-buffer))
+  :init (progn
+          (setq ido-save-directory-list-file (expand-file-name "ido-state" user-emacs-directory))
+          (bind-key* "C-x C-f" #'ido-find-file)
+          (ido-mode 1))
   :config (progn
-            (ido-mode 1)
-            (setq ido-decorations (quote ("\n›" "" "\n " "\n …" "[" "]" " [No match]" " [Matched]" " [Not readable]" " [Too big]" " [Confirm]")))
-            (setq ido-auto-merge-delay-time 99999
+            (setq ido-decorations (quote ("\n›" "" "\n " "\n …" "[" "]" " [No match]" " [Matched]" " [Not readable]" " [Too big]" " [Confirm]"))
+                  ido-auto-merge-delay-time 99999
                   ido-enable-flex-matching t
-                  ido-use-virtual-buffers t
-                  ido-save-directory-list-file (expand-file-name user-emacs-directory
-                                                                 "ido-state"))
+                  ido-use-virtual-buffers t)
+
             (ido-init-completion-maps)
             (defun ido-manual-merge ()
               (interactive)