unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Marc Weber <marco-oweber@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: window local var?
Date: Mon, 06 Sep 2010 13:39:58 +0200	[thread overview]
Message-ID: <1283772789-sup-3909@nixos> (raw)

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



             reply	other threads:[~2010-09-06 11:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-06 11:39 Marc Weber [this message]
2010-09-06 18:43 ` window local var? Andrea Crotti
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1283772789-sup-3909@nixos \
    --to=marco-oweber@gmx.de \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).