From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jos=E9_A=2E_Romero_L=2E?= Newsgroups: gmane.emacs.help Subject: Re: Create shell from ido Date: Thu, 28 Jan 2010 01:25:42 -0800 (PST) Organization: http://groups.google.com Message-ID: <5df65c2e-6a63-4989-a562-a10b768dd6d6@k41g2000yqm.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1264671748 30556 80.91.229.12 (28 Jan 2010 09:42:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jan 2010 09:42:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 28 10:42:26 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 1NaQtL-0007F1-U0 for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jan 2010 10:42:24 +0100 Original-Received: from localhost ([127.0.0.1]:37906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaQtL-0000Rb-Ev for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jan 2010 04:42:23 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!k41g2000yqm.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: 62.111.135.130 Original-X-Trace: posting.google.com 1264670742 17791 127.0.0.1 (28 Jan 2010 09:25:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 28 Jan 2010 09:25:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k41g2000yqm.googlegroups.com; posting-host=62.111.135.130; posting-account=mkEKGAoAAACAV2vhv5r9WHXWqsdL_niD User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:176467 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:71539 Archived-At: On 28 Sty, 02:54, Nathaniel Flath wrote: > Hello, > I have ido activated. If I do C-x C-f and navigate to a directory, C-d w= ill > open a dired buffer in that directory. Is there a way to open a shell > buffer instead? > > Thanks, > Nathaniel Flath Depends on the shell you want to use. For regular shell you could use something like this: (defun nf/openshell (&optional dir) (interactive "DDirectory to open shell into: ") (shell) (if dir (comint-send-string (current-buffer) (concat "cd " (shell-quote-wildcard-pattern dir) " ")))) in any case, it doesn't seem to be possible to open a shell directly in any arbitrary directory other than default-directory. You always have to send a "cd something" to move to where you want to be (though I'd be glad to find out I'm wrong). In any case, that's the same I do in SrC (http://www.emacswiki.org/emacs/Sunrise_Commander) and works quite well for me. Cheers, -- Jos=E9 A. Romero L. escherdragon at gmail.com "We who cut mere stones must always be envisioning cathedrals." (Quarry worker's creed)