[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to not change the working directory when opening a file
From: |
Francis Moreau |
Subject: |
Re: how to not change the working directory when opening a file |
Date: |
Tue, 15 Jan 2008 16:53:48 +0100 |
On Jan 15, 2008 4:13 PM, Eric Hanchrow <offby1@blarg.net> wrote:
> I imagine you could simply put this in your .emacs:
>
> (setq emacs-startup-directory default-directory)
>
> Then your hook could refer to emacs-startup-directory.
>
Yes.
I added this to my .emacs:
(add-hook 'post-mode-hook '(lambda () (setq default-directory
emacs-startup-directory)))
and it does the right thing now although I'm really not sure about the
syntax I used.
Thanks
--
Francis