From mboxrd@z Thu Jan 1 00:00:00 1970 From: 'Mash Subject: org-agenda-files defvar directory "evaluation" ? Date: Fri, 7 Jun 2013 17:16:50 +0100 Message-ID: <20130607161649.GA19899@grace.toshine.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkzL4-00061L-20 for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 12:16:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkzL2-0000Ko-QJ for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 12:16:30 -0400 Received: from mxout-08.mxes.net ([216.86.168.183]:56491) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkzL2-0000Ki-LY for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 12:16:28 -0400 Received: from localhost (unknown [195.7.254.102]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 7211F50A86 for ; Fri, 7 Jun 2013 12:16:27 -0400 (EDT) Content-Disposition: inline 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 Org Sorry not quite sure how to phrase the problem in the subject line there. I have the following setup in my .emacs ... (defvar org-dir "/home/mash/read/org/") And use it around such as ... (setq org-directory org-dir) (setq org-default-notes-file (concat org-dir "mash.org")) Now I understand that you can specify a directory such as ... (setq org-agenda-files '("/home/mash/read/org/")) But how would I do this with the variable? (setq org-agenda-files '(org-dir)) (setq org-agenda-files '(,(org-dir)) Any ideas as I would like to use it in my capture templates too ... (setq org-capture-templates '( ("t" "Test" entry (file+headline (concat org-dir "test.org" "test") "* %?") )) Many thanks, 'Mash