|
From: | Sebastian Tennant |
Subject: | Re: How to not change the working directory when opening a file |
Date: | Tue, 15 Jan 2008 18:16:01 +0200 |
User-agent: | Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux) |
Quoth "Francis Moreau" <francis.moro@gmail.com>: > $ pwd > /home/fmoreau/tmp > $ emacs /tmp/foo.txt > > I'd like the current working directory to be "/home/fmoreau/tmp" > when editing "/tmp/foo.txt" in emacs. Perhaps putting this at the end of your ~/.emacs: (cd (getenv "PWD")) I haven't tested this, but it might do it. Sebastian
[Prev in Thread] | Current Thread | [Next in Thread] |