From mboxrd@z Thu Jan 1 00:00:00 1970 From: niels giesen Subject: Default directory in org-agenda-mode Date: Wed, 12 Jan 2011 19:29:39 +0100 Message-ID: <8739oy3rho.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=48278 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd5SM-0000Bz-Dr for emacs-orgmode@gnu.org; Wed, 12 Jan 2011 13:30:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pd5SL-00060G-4Y for emacs-orgmode@gnu.org; Wed, 12 Jan 2011 13:30:02 -0500 Received: from mail-ew0-f41.google.com ([209.85.215.41]:39644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pd5SL-0005zo-09 for emacs-orgmode@gnu.org; Wed, 12 Jan 2011 13:30:01 -0500 Received: by ewy27 with SMTP id 27so418827ewy.0 for ; Wed, 12 Jan 2011 10:29:59 -0800 (PST) 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: emacs-orgmode@gnu.org Hi all, I would like `default-directory' in `org-agenda-mode' to be the value of `org-directory'. This is because I tend to start my working day by opening the Agenda view, and then decide to open some org file (which I all have inside `org-directory' and that may or may not have items present in the specific Agenda view). To this end I tried doing the following: #+begin_src emacs-lisp (add-to-list 'default-directory-alist `(org-agenda-mode ,org-directory)) #+end_src But this does not work. Any ideas? Regards, Niels.