From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao LU Subject: Re: Using Variable in Org-capture configuration Date: Wed, 23 Mar 2011 11:57:30 -0400 Message-ID: References: <27288B59-4612-4422-BA06-20DED5E47FD7@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00032555988a4531c7049f286de2 Return-path: Received: from [140.186.70.92] (port=38576 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2QRn-000640-U3 for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 11:58:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2QRm-0003og-Jr for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 11:58:11 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:34509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2QRm-0003oZ-CU for emacs-orgmode@gnu.org; Wed, 23 Mar 2011 11:58:10 -0400 Received: by bwz17 with SMTP id 17so7842456bwz.0 for ; Wed, 23 Mar 2011 08:58:08 -0700 (PDT) In-Reply-To: <27288B59-4612-4422-BA06-20DED5E47FD7@gmail.com> 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: Carsten Dominik Cc: emacs-orgmode@gnu.org --00032555988a4531c7049f286de2 Content-Type: text/plain; charset=ISO-8859-1 Yes, the latest version of org 7.5 works! Thanks~ Chao On Tue, Mar 22, 2011 at 12:56 PM, Carsten Dominik wrote: > > On 22.3.2011, at 15:25, Chao LU wrote: > > > Dear all, > > > > Just writing to see if it is possible to use variable in org-capture > configuration, like this > > > > (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") > > > > 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=form > > - Carsten > > > > > Thanks, > > > > Chao > > --00032555988a4531c7049f286de2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Yes, the latest version of org 7.5 works!

Thanks~

Chao
On Tue, Mar 22, 2011 at 12:56 PM, Carsten Domin= ik <carst= en.dominik@gmail.com> wrote:

On 22.3.2011, at 15:25, Chao LU wrote:

> Dear all,
>
> Just writing to see if it is possible to use variable in org-capture c= onfiguration, like this
>
> =A0(setq org-capture-templates
> =A0 =A0 =A0 =A0 =A0 =A0'(("t" "Todo" entry (fi= le "~/org/refile.org") "* TODO %?\n =A0%i\n =A0%a" :prepend t)))
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 ------------------------
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0\---How could I use-> (concat= My-Dropbox-Path "
refi= le.org")
>
> Since I put all my files in Dropbox, and the My-Dropbox-Path has diffe= rent values under MAC and M$Windows.

Using backquote as the others in this thread say is one possibi= lity.
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

>
> Thanks,
>
> Chao


--00032555988a4531c7049f286de2--