all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrea Crotti <andrea.crotti.0@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: window local var?
Date: Mon, 06 Sep 2010 20:43:50 +0200	[thread overview]
Message-ID: <m1bp8ahfvd.fsf@gmail.com> (raw)
In-Reply-To: 1283772789-sup-3909@nixos

Marc Weber <marco-oweber@gmx.de> 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	other threads:[~2010-09-06 18:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-06 11:39 window local var? Marc Weber
2010-09-06 18:43 ` Andrea Crotti [this message]
2010-09-06 19:00   ` Marc Weber
2010-09-07  0:34     ` PJ Weisberg
2010-09-07 16:12       ` PJ Weisberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1bp8ahfvd.fsf@gmail.com \
    --to=andrea.crotti.0@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.