From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Using Variable in Org-capture configuration Date: Tue, 22 Mar 2011 17:56:44 +0100 Message-ID: <27288B59-4612-4422-BA06-20DED5E47FD7@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=56251 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q24t1-0000pd-Pf for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 12:56:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q24t0-0001L7-BO for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 12:56:51 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:56539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q24t0-0001Kh-71 for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 12:56:50 -0400 Received: by eyh6 with SMTP id 6so1973529eyh.0 for ; Tue, 22 Mar 2011 09:56:48 -0700 (PDT) In-Reply-To: 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: Chao LU Cc: emacs-orgmode@gnu.org On 22.3.2011, at 15:25, Chao LU wrote: > Dear all, >=20 > Just writing to see if it is possible to use variable in org-capture = configuration, like this >=20 > (setq org-capture-templates > '(("t" "Todo" entry (file "~/org/refile.org") "* TODO %?\n = %i\n %a" :prepend t))) > ------------------------ > \---How could I = use-> (concat My-Dropbox-Path "refile.org") >=20 > Since I put all my files in Dropbox, and the My-Dropbox-Path has = different values under MAC and M$Windows. Using backquote as the others in this thread say is one possibility. However, you can also get the latest version of Org - it does allow a lisp form for the file name: http://article.gmane.org/gmane.emacs.orgmode/38067/match=3Dform - Carsten >=20 > Thanks, >=20 > Chao