On Fri, Jan 29, 2010 at 12:00 AM, Kevin Rodgers
<kevin.d.rodgers@gmail.com> wrote:
Nathaniel Flath wrote:
Hello,
I have ido activated. If I do C-x C-f and navigate to a directory, C-d will open a dired buffer in that directory. Is there a way to open a shell buffer instead?
I don't use ido, so I don't even know how to test this. But here's what I came
up with from looking at ido.el. I didn't understand how to properly implement
ido-magic-control-s, so you have to type `C-x C-f C-x C-s' (by analogy with
`C-x C-f C-x C-d', which runs ido-enter-dired):
(defun ido-enter-shell ()
"Drop into `shell' from file switching."
(interactive)
(setq ido-exit 'shell)
(exit-minibuffer))
(define-key ido-file-dir-completion-map "\C-x\C-s" 'ido-enter-shell)
--
Kevin Rodgers
Denver, Colorado, USA