unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* shortcut to take me from eshell to shell and preserve cwd
@ 2014-05-09 18:25 ckhan
  2014-05-09 18:53 ` Grant Rettke
  0 siblings, 1 reply; 2+ messages in thread
From: ckhan @ 2014-05-09 18:25 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: shortcut to take me from eshell to shell and preserve cwd
  2014-05-09 18:25 shortcut to take me from eshell to shell and preserve cwd ckhan
@ 2014-05-09 18:53 ` Grant Rettke
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Rettke @ 2014-05-09 18:53 UTC (permalink / raw)
  To: ckhan; +Cc: Emacs Help

What have you tried so far?
Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi
grettke@acm.org | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson


On Fri, May 9, 2014 at 1:25 PM, ckhan <charleykhan@gmail.com> wrote:
> 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-09 18:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-09 18:25 shortcut to take me from eshell to shell and preserve cwd ckhan
2014-05-09 18:53 ` Grant Rettke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).