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

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

Re: Convenient way to set "root of my project"?


From: Brett Hoerner
Subject: Re: Convenient way to set "root of my project"?
Date: Wed, 28 Jan 2009 07:25:46 -0800 (PST)
User-agent: G2/1.0

On Jan 28, 1:11 am, "Drew Adams" <address@hidden> wrote:
> Sounds similar to the recent thread "build a macro that opens a directory and
> prompts for file name" - see that for suggestions. In particular, see Emacs
> command `cd' and variable `default-directory'.

Thanks!

I had used 'cd' by hand in the past, but 'default-directory' looks
like what I want.  I'm very new to all of this, I just need to find a
way now to hook the opening of a file, detect if it matches a path
like '/a/NAME/src/.*' and set the default directory of that buffer to
'/a/NAME/src/'

Brett


reply via email to

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