From mboxrd@z Thu Jan 1 00:00:00 1970 From: Niels Giesen Subject: Re: Default directory in org-agenda-mode Date: Wed, 12 Jan 2011 20:41:38 +0100 Message-ID: <87vd1t3o5p.fsf@gmail.com> References: <8739oy3rho.fsf@gmail.com> <23847.1294859539@gamaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=48006 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd6a1-0001LE-IY for emacs-orgmode@gnu.org; Wed, 12 Jan 2011 14:42:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pd6a0-0005uE-Ba for emacs-orgmode@gnu.org; Wed, 12 Jan 2011 14:42:01 -0500 Received: from mail-ew0-f41.google.com ([209.85.215.41]:58839) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pd6a0-0005uA-65 for emacs-orgmode@gnu.org; Wed, 12 Jan 2011 14:42:00 -0500 Received: by ewy27 with SMTP id 27so467543ewy.0 for ; Wed, 12 Jan 2011 11:41:58 -0800 (PST) In-Reply-To: <23847.1294859539@gamaville.dokosmarshall.org> (Nick Dokos's message of "Wed, 12 Jan 2011 14:12:19 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org Hi Nick, Nick Dokos 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/