From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ckhan Newsgroups: gmane.emacs.help Subject: shortcut to take me from eshell to shell and preserve cwd Date: Fri, 9 May 2014 11:25:29 -0700 (PDT) Message-ID: <9a205eac-45b5-4c03-983d-5a4d51f5958d@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1399660228 18572 80.91.229.3 (9 May 2014 18:30:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 May 2014 18:30: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 Fri May 09 20:30:21 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WipYq-00053g-06 for geh-help-gnu-emacs@m.gmane.org; Fri, 09 May 2014 20:30:20 +0200 Original-Received: from localhost ([::1]:53956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WipYp-00031K-3l for geh-help-gnu-emacs@m.gmane.org; Fri, 09 May 2014 14:30:19 -0400 X-Received: by 10.42.107.201 with SMTP id e9mr5318960icp.13.1399659929833; Fri, 09 May 2014 11:25:29 -0700 (PDT) X-Received: by 10.51.16.5 with SMTP id fs5mr143754igd.16.1399659929704; Fri, 09 May 2014 11:25:29 -0700 (PDT) Original-Path: usenet.stanford.edu!c1no3773799igq.0!news-out.google.com!gi6ni790igc.0!nntp.google.com!c1no3773791igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2002:ade4:709f:0:ec79:894d:3e3:195; posting-account=XMo5DQkAAAApA8Qtlaw8jKDsIFzKQegf Original-NNTP-Posting-Host: 2002:ade4:709f:0:ec79:894d:3e3:195 User-Agent: G2/1.0 Injection-Date: Fri, 09 May 2014 18:25:29 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:205308 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97575 Archived-At: How would I write an elisp function that is active in eshell mode that does the following: - queries current directory - changes to the buffer named *shell*, (runs M-x shell to create it if it's no there) - runs "cd " to drop me into the same dir that I was in in eshell Thanks for any tips! -ck