emacs - Disable ido-mode for specific commands? -


i've been using ido-mode few months, ido-everywhere turned on, , pretty happy it. there's 1 thing wish change, though. when type c-u m-x shell create new shell buffer specific name, ido offers me completion list of of open buffers. if choose one, new shell launched in buffer , it's put shell-mode, no matter contains. it's hard imagine useful use case this.

is there way deactivate ido-mode shell command only? (as other similar commands may stumble across in future, of course.)

heh, turns out you'll same completion choices whether or not have ido-everywhere enabled.

there's no built-in way want. ido-mode provides hooks able override whether or not find-file behavior taken on ido or not. read-buffer always overridden ido-everywhere.

luckily, little emacs lisp can want:

(put 'shell 'ido 'ignore) (defadvice ido-read-buffer (around ido-read-buffer-possibly-ignore activate)   "check see if use wanted avoid using ido"   (if (eq (get this-command 'ido) 'ignore)       (let ((read-buffer-function nil))         (run-hook-with-args 'ido-before-fallback-functions 'read-buffer)         (setq ad-return-value (apply 'read-buffer (ad-get-args 0))))     ad-do-it)) 

and other command don't want following ido-everywhere buffer selection can customized adding new expression .emacs:

(put 'other-command-i-want-untouched 'ido 'ignore) 

Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -