help-gnu-emacs
[Top][All Lists]
Advanced

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

shortcut to take me from eshell to shell and preserve cwd


From: ckhan
Subject: shortcut to take me from eshell to shell and preserve cwd
Date: Fri, 9 May 2014 11:25:29 -0700 (PDT)
User-agent: G2/1.0

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 <dir>" to drop me into the same dir that I was in in eshell

Thanks for any tips!
-ck


reply via email to

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