unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: define Info's "dir"?
Date: Wed, 28 Apr 2004 09:23:25 -0600	[thread overview]
Message-ID: <408FCC6D.30908@yahoo.com> (raw)
In-Reply-To: mailman.2160.1083158847.1061.help-gnu-emacs@gnu.org

gebser@speakeasy.net wrote:
 > I'm not the original poster, but I'd like to be able to set the default
 > directory interactively and change it from time to time.  The motivation
 > is that I sometimes work on a project whose (multiple) files all reside,
 > or will reside, in a particular directory (or subdirs of it.  As a
 > fictional example, suppose I'm working on economics today.  Throughout
 > the day I create several files which I want to have in econ/national/,
 > econ/state/, econ/local/, and econ/international.  In this case I'd want
 > the default directory to be /home/ken/projects/writings/politics/econ/
 > but wouldn't want to have to type that in every time I visit a file.
 > I'm aware of "M-x cd" but this sets "default-directory" only for that
 > buffer.  I'd like a function (defun in emacspeak, yes?) which is global,
 > i.e., sets the default-directory no matter which buffer I'm currently
 > visiting.  Is there such a nicety?

Why don't you just visit files from a Dired buffer visiting that directory?
C-x d ~/projects/writings/politics/econ

-- 
Kevin Rodgers

       reply	other threads:[~2004-04-28 15:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2160.1083158847.1061.help-gnu-emacs@gnu.org>
2004-04-28 15:23 ` Kevin Rodgers [this message]
2004-05-01  9:42 ` define Info's "dir"? Kai Grossjohann
2004-05-02  3:11   ` gebser
2004-04-28  6:44 Mike Ballard
2004-04-28 11:22 ` Eli Zaretskii
2004-04-28 12:35   ` gebser
2004-04-28 19:03     ` Eli Zaretskii
2004-04-29 15:35       ` gebser
     [not found] ` <mailman.2124.1083147692.1061.help-gnu-emacs@gnu.org>
2004-04-29  5:16   ` Mike Ballard
2004-04-29 19:12     ` Eli Zaretskii
     [not found]     ` <mailman.2480.1083262409.1061.help-gnu-emacs@gnu.org>
2004-04-30  4:07       ` Mike Ballard

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=408FCC6D.30908@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /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).