From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Jewell Subject: org-agenda-files Date: Tue, 6 Oct 2015 21:34:31 +0100 Message-ID: <56143057.1040201@teulu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjYwV-00051q-NP for emacs-orgmode@gnu.org; Tue, 06 Oct 2015 16:34:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZjYwT-0000Bb-0E for emacs-orgmode@gnu.org; Tue, 06 Oct 2015 16:34:35 -0400 Received: from mailex.mailcore.me ([94.136.40.145]:34654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZjYwS-0000BB-RN for emacs-orgmode@gnu.org; Tue, 06 Oct 2015 16:34:32 -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 1ZjYwR-0002j6-Mw for emacs-orgmode@gnu.org; Tue, 06 Oct 2015 21:34:32 +0100 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 Good evening! I am starting to use a more complex setup for org-mode, having left it alone for more than a year. The setup I am using is documented here: http://doc.norang.ca/org-mode.html I am having a problem with setting up the org-agenda-files variable in the startup code: In my .emacs: ------------------------8<------------------------------------------------ (setq org-user-agenda-files ( quote ("~/git/org" "~/git/org/test"))) (add-to-list 'load-path (expand-file-name "~/.emacs.d/lisp")) (load "org-mode") ------------------------8<------------------------------------------------ In the org-mode.el file from the above site: ------------------------8<------------------------------------------------ ;; The following setting is different from the document so that you ;; can override the document org-agenda-files by setting your ;; org-agenda-files in the variable org-user-agenda-files ;; (if (boundp 'org-user-agenda-files) (setq org-agenda-files org-user-agenda-files) (setq org-agenda-files (quote ("~/git/org" "~/git/org/client1" "~/git/client2")))) ------------------------8<------------------------------------------------ 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"). Results of executing the following code (in this order) in the scratch buffer: (boundp 'org-user-agenda-files) => t org-user-agenda-files => ("~/git/org" "~/git/org/test") (boundp 'org-agenda-files) => t org-agenda-files => nil (setq org-agenda-files org-user-agenda-files) => ("~/git/org" "~/git/org/test") org-agenda-files => ("~/git/org" "~/git/org/test") So I don't understand why the commands in .emacs and org-mode.el aren't giving me the expected results. Have I missed something with my limited knowledge of lisp? Many thanks in advance for your help!