[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Create shell from ido

From: Kevin Rodgers
Subject: Re: Create shell from ido
Date: Thu, 28 Jan 2010 22:00:41 -0700
User-agent: Thunderbird (Macintosh/20090812)

Nathaniel Flath wrote:
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."
  (setq ido-exit 'shell)

(define-key ido-file-dir-completion-map "\C-x\C-s" 'ido-enter-shell)

Kevin Rodgers
Denver, Colorado, USA

reply via email to

[Prev in Thread] Current Thread [Next in Thread]