Juan Fuentes avatar Juan Fuentes committed bd83be8

Cleaned up code.

Comments (0)

Files changed (1)

site-lisp/ido-conf.el

 ;; Keywords:
 ;;
 ;;; Code:
-(ido-mode t)
 
 (load-after ido
-  (ido-everywhere))
+  (ido-mode +1)
+  (ido-everywhere)
+  (message "ido-conf loading")
+  (setq ido-use-faces nil)
+  (setq ido-create-new-buffer 'always)
+  (setq ido-enable-regexp t)
+  (setq ido-completion-buffer-all-completions t)
+  (setq ido-enable-flex-matching t)
+  (setq ido-record-commands t)
 
-(setq ido-create-new-buffer 'always)
-(setq ido-enable-regexp t)
-(setq ido-completion-buffer-all-completions t)
-(setq ido-enable-flex-matching t)
-(setq ido-record-commands t)
+  (setq ido-case-fold t
+        ido-enable-last-directory-history nil
+        ido-buffer-history t
+        ido-max-work-directory-list 100
+        ido-max-work-file-list 50
+        ido-use-filename-at-point 'guess
+        ido-use-url-at-point 'guess
+        ido-max-prospects 7
+        ido-enable-tramp-completion nil
+        ido-confirm-unique-completion nil)
+  (setq ido-file-extensions-order '(".org" ".el" ".go" ".c" ".sh" ".lisp" ".py" ".pl" ".json"))
 
-(setq ido-case-fold t
-      ido-enable-last-directory-history nil
-      ido-buffer-history t
-      ido-max-work-directory-list 100
-      ido-max-work-file-list 50
-      ido-use-filename-at-point 'guess
-      ido-use-url-at-point 'guess
-      ido-max-prospects 7
-      ido-enable-tramp-completion nil
-      ido-confirm-unique-completion nil)
-(setq ido-file-extensions-order '(".org" ".el" ".go" ".c" ".sh" ".lisp" ".py" ".pl" ".json"))
+  (add-to-list 'ido-work-directory-list-ignore-regexps tramp-file-name-regexp)
 
-(add-to-list 'ido-work-directory-list-ignore-regexps tramp-file-name-regexp)
-
-(add-hook 'ido-setup-hook
-          (lambda()
-            ;; Go straight home
-            (define-key ido-file-completion-map (kbd "~")
-              (lambda()
-                (interactive)
-                (if (looking-back "/")
-                    (insert "~/")
-                  (call-interactively 'self-insert-command))))))
+  (add-hook 'ido-setup-hook
+            (lambda()
+              ;; Go straight home
+              (define-key ido-file-completion-map (kbd "~")
+                (lambda()
+                  (interactive)
+                  (if (looking-back "/")
+                      (insert "~/")
+                    (call-interactively 'self-insert-command)))))))
 
 (provide 'ido-conf)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.