[Top][All Lists]

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

Re: Go to my CWD!

From: Andreas Röhler
Subject: Re: Go to my CWD!
Date: Wed, 27 Jan 2010 20:38:50 +0100
User-agent: Thunderbird (X11/20081227)

Andrea Crotti wrote:
> Whenever I have a shell or another interpreter of course they keep
> they're own current directory, which is given from the first time I've
> launched them.
> But if I for example call
> M-x shell 
> again it means that I want the shell in the directory of the current
> buffer, not that old forgotten position.
> That's also true for python interpreter or any other interpreter, is
> there a way to solve this problem automatically?

Maybe that way?:

(defun my-shell-always-in-default-dir ()
(shell default-directory))


> Maybe a second call should kill and restart instead of visiting the
> already open?

reply via email to

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