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

[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: Eric Hanchrow
Subject: Re: how to not change the working directory when opening a file
Date: Tue, 15 Jan 2008 07:13:30 -0800
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

>>>>> "Francis" == Francis Moreau <address@hidden> writes:

    Francis> When I compose an email mutt basically does the following
    Francis> to start emacs:

    Francis> emacs -nw /tmp/mutt-file -f post-mode

    Francis> ... i don't know how to specify "the directory where
    Francis> emacs was launched".

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.

-- 
I hope to get back to work on Arc soon.
        -- Paul Graham, quoted in "ACM Crossroads", no date given





reply via email to

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