From: Niels Giesen <niels.giesen@gmail.com>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode@gnu.org
Subject: Re: Default directory in org-agenda-mode
Date: Wed, 12 Jan 2011 20:41:38 +0100 [thread overview]
Message-ID: <87vd1t3o5p.fsf@gmail.com> (raw)
In-Reply-To: <23847.1294859539@gamaville.dokosmarshall.org> (Nick Dokos's message of "Wed, 12 Jan 2011 14:12:19 -0500")
Hi Nick,
Nick Dokos <nicholas.dokos@hp.com> writes:
[...]
> AFAIK, there is no variable default-directory-alist - at least, my
> emacs does not know anything about it.
Ah, yes, I see it's provided by dired-x, which does ship with emacs, but
is not loaded by default.
Its documentation says
#+begin_example
Alist of major modes and their opinion on `default-directory'.
This is given as a Lisp expression to evaluate. A resulting value of
nil is ignored in favor of `default-directory'.
#+end_example
Looking some more into the code, it looks like it is not meant to be a
generic replacement for `default-directory', although its name would
suggest that (to me at least).
[...]
> (eval-after-load "org-agenda"
> (quote
> (progn
> ...
> (add-hook 'org-agenda-mode-hook (function (lambda () (setq default-directory org-directory)))))))
That is a great solution, thanks!
[...]
--
http://pft.github.com/
next prev parent reply other threads:[~2011-01-12 19:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-12 18:29 Default directory in org-agenda-mode niels giesen
2011-01-12 19:12 ` Nick Dokos
2011-01-12 19:41 ` Niels Giesen [this message]
2011-01-12 19:23 ` Tassilo Horn
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vd1t3o5p.fsf@gmail.com \
--to=niels.giesen@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=nicholas.dokos@hp.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
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).