From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Jewell Subject: Re: org-agenda-files Date: Thu, 8 Oct 2015 22:36:09 +0100 Message-ID: <5616E1C9.1080606@teulu.org> References: <56143057.1040201@teulu.org> <87si5lw3jf.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43244) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkIrM-0001nX-P9 for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 17:36:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZkIrH-0007JX-T3 for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 17:36:20 -0400 Received: from mailex.mailcore.me ([94.136.40.144]:45151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZkIrE-00078U-Uh for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 17:36:14 -0400 Received: from host86-179-110-210.range86-179.btcentralplus.com ([86.179.110.210] helo=[192.168.1.64]) by smtp04.mailcore.me with esmtpa (Exim 4.80.1) (envelope-from ) id 1ZkIrC-000AjV-4j for emacs-orgmode@gnu.org; Thu, 08 Oct 2015 22:36:10 +0100 In-Reply-To: <87si5lw3jf.fsf@ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On 08/10/15 20:42, Eric S Fraga wrote: > On Tuesday, 6 Oct 2015 at 21:34, Paul Jewell wrote: > > [...] > >> So by setting org-user-agenda-files in my .emacs before loading >> org-mode.el (which I have in my ~/.emacs.d/lisp directory), I should be >> setting org-agenda-files to ("~/git/org" "~/git/org/test"). > > When do you load org itself? > > Other than variables set by customize, I load org and then setq > variables. > The problem was customize. I set the org-user-agenda-files in .emacs, then load the org-mode.el. This loads org mode at te top of the file, then sets org-agenda-files to org-user-agenda-files. The bit I missed was that org-agenda-files were set in customize to nil, and this change was happening after the assignment. Once I cleared this, everything works as planned. Thanks for coming back to me!