From mboxrd@z Thu Jan 1 00:00:00 1970 From: 'Mash Subject: Re: org-agenda-files defvar directory "evaluation" ? Date: Mon, 10 Jun 2013 12:29:45 +0100 Message-ID: <20130610122945.17342ex1dq8imf8k@webmail.tuffmail.net> References: <20130607161649.GA19899@grace.toshine.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um0IH-0005n4-Cg for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 07:29:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Um0IE-000082-Of for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 07:29:49 -0400 Received: from mxout-08.mxes.net ([216.86.168.183]:12718) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um0IE-00007c-LL for emacs-orgmode@gnu.org; Mon, 10 Jun 2013 07:29:46 -0400 Received: from wm1.irbs.net (wm1.irbs.net [216.86.168.168]) by smtp.mxes.net (Postfix) with ESMTP id 8C8F550A85 for ; Mon, 10 Jun 2013 07:29:45 -0400 (EDT) Received: from localhost (wm1.irbs.net [216.86.168.168]) by wm1.irbs.net (Postfix) with ESMTPA id 6674C50115D for ; Mon, 10 Jun 2013 07:29:45 -0400 (EDT) In-Reply-To: <20130607161649.GA19899@grace.toshine.net> 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 Cc: Emacs Org Resolved this via stackoverflow. (setq org-agenda-files (list org-dir)) http://stackoverflow.com/questions/17020119/org-mode-org-agenda-files-defvar= -directory-evaluation/17021834 Quoting 'Mash : > 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 > '( > =09("t" "Test" entry (file+headline (concat org-dir "test.org" "test") > =09 "* %?") > )) > > > > Many thanks, > > 'Mash > 'to life is doxology | http://toshine.org