summaryrefslogtreecommitdiffstats
path: root/emacs/init.org
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/init.org')
-rw-r--r--emacs/init.org78
1 files changed, 78 insertions, 0 deletions
diff --git a/emacs/init.org b/emacs/init.org
index 003d229..5394f5e 100644
--- a/emacs/init.org
+++ b/emacs/init.org
@@ -516,3 +516,81 @@
(setq jabber-use-global-history nil
jabber-history-dir "~/.emacs.d/jabber-hist")
#+END_SRC
+
+* ido
+
+ Keep some buffers from showing up when using ido-mode. Either these
+ get used very rarely or they don't have any really useful
+ information in them.
+
+ #+BEGIN_SRC emacs-lisp
+ (defun oni:ido-init ()
+ "Initialization functionn for ido."
+ (setq ido-ignore-buffers
+ (list "^\\` " "^irc\\." "^\\#" "^\\*Customize Option:"
+ (eval-when-compile
+ (regexp-opt
+ '("*-jabber-roster-*"
+ "*Messages*"
+ "*fsm-debug*"
+ "*magit-process*"
+ "*magit-edit-log*"
+ "*Backtrace*"))))))
+
+ (eval-after-load "ido" '(oni:ido-init))
+ #+END_SRC
+
+ Ido tries to be smart and find files in other directories, I don't
+ like that, stop doing that (or at least wait a long time).
+
+ #+BEGIN_SRC emacs-lisp
+ (setq ido-auto-merge-delay-time 1000000)
+ #+END_SRC
+
+ Open files in the selected window when switching between buffers.
+
+ #+BEGIN_SRC emacs-lisp
+ (setq ido-default-buffer-method 'selected-window)
+ #+END_SRC
+
+ Only ever show one line of possibilities when using ido. I hate it
+ when the minibuffer grows.
+
+ #+BEGIN_SRC emacs-lisp
+ (setq ido-max-window-height 1)
+ #+END_SRC
+
+ Don't save ido state between invocations.
+
+ #+BEGIN_SRC emacs-lisp
+ (setq ido-save-directory-list-file nil)
+ #+END_SRC
+
+ Enable =ido-mode=.
+
+ #+BEGIN_SRC emacs-lisp
+ (ido-mode)
+ #+END_SRC
+
+** ido-ubiquitous
+
+ Don't use ido when calling =org-refile= or =org-capture-refile=.
+
+ #+BEGIN_SRC emacs-lisp
+ (setq ido-ubiquitous-command-exceptions
+ '(org-refile org-capture-refile))
+ #+END_SRC
+
+ Enable =ido-ubiquitous=.
+
+ #+BEGIN_SRC emacs-lisp
+ (ido-ubiquitous-mode)
+ #+END_SRC
+
+** idomenu
+
+ Call =idomenu= with ~M-n~.
+
+ #+BEGIN_SRC emacs-lisp
+ (global-set-key (kbd "M-n") 'idomenu)
+ #+END_SRC