From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Create shell from ido Date: Thu, 28 Jan 2010 22:00:41 -0700 Message-ID: References: <5e3a506e1001271754j7b55bb69x6aa0af16acaf26f1@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1264741292 22852 80.91.229.12 (29 Jan 2010 05:01:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jan 2010 05:01:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 29 06:01:30 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Naiz1-0004FP-Nj for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jan 2010 06:01:28 +0100 Original-Received: from localhost ([127.0.0.1]:53107 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Naiz1-0004vY-2v for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jan 2010 00:01:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Naiye-0004uW-Nz for help-gnu-emacs@gnu.org; Fri, 29 Jan 2010 00:01:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Naiya-0004r5-9P for help-gnu-emacs@gnu.org; Fri, 29 Jan 2010 00:01:04 -0500 Original-Received: from [199.232.76.173] (port=57223 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Naiya-0004qu-2Z for help-gnu-emacs@gnu.org; Fri, 29 Jan 2010 00:01:00 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:60183) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NaiyZ-0004Gv-G7 for help-gnu-emacs@gnu.org; Fri, 29 Jan 2010 00:00:59 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NaiyX-00047M-Qf for help-gnu-emacs@gnu.org; Fri, 29 Jan 2010 06:00:57 +0100 Original-Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Jan 2010 06:00:57 +0100 Original-Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Jan 2010 06:00:57 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 22 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) In-Reply-To: <5e3a506e1001271754j7b55bb69x6aa0af16acaf26f1@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71555 Archived-At: 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