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

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

Re: window local var?


From: Andrea Crotti
Subject: Re: window local var?
Date: Mon, 06 Sep 2010 20:43:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin)

Marc Weber <address@hidden> writes:

> Hi list,
>
> I used Vim in the past heavily - meaning I'm still learning about the
> "Emacs" way of doing things. Vimpulse is doing a great job for me :)
>
> I've learned about emacsclient.
>
> However one of the most used actions I run is
> - grep
> - gnu id utils
> - kind of compiler (eg make)
>
> And they all depend on a current directory (most of the time)
>
> So when starting Emacs, can I create a window local var keeping the
> directory in mind I started this Emacs window from?
>
> Then I could create custom functions switching current directory before
> running grep, make, etc.
>
> If there are no window local vars - Is there a kind of window id (for
> both X and terminal) I could use to associate a directory with?
>
> Marc Weber

When running those things in the current buffer directory is what you
normally want..

A fast way to use your own path could also be just doing
M-x grep -nH -e "string" /path/

where also the /path/ has the smart completion.




reply via email to

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