From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao LU Subject: Using Variable in Org-capture configuration Date: Tue, 22 Mar 2011 10:25:48 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=00151747b87070ae31049f13063d Return-path: Received: from [140.186.70.92] (port=37701 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q22ZZ-0004SW-RE for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 10:28:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q22ZY-0002J0-Ay for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 10:28:37 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:46353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q22ZX-0002Ib-VV for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 10:28:36 -0400 Received: by eyh6 with SMTP id 6so1904205eyh.0 for ; Tue, 22 Mar 2011 07:28:35 -0700 (PDT) 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: emacs-orgmode@gnu.org --00151747b87070ae31049f13063d Content-Type: text/plain; charset=ISO-8859-1 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. Thanks, Chao --00151747b87070ae31049f13063d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dear all,

Just writing to see if it is possible to use variable in o= rg-capture configuration, like this

=A0(setq org-capture-templates=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 '(("t" "Todo" entr= y (file "~/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=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-Pat= h "refile.org")

Since I put all my files in Dropbox, and the My-Dropbox-Path has differ= ent values under MAC and M$Windows.

Thanks,

Chao
--00151747b87070ae31049f13063d-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Using Variable in Org-capture configuration Date: Tue, 22 Mar 2011 10:48:24 -0400 Message-ID: <9193.1300805304@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 Return-path: Received: from [140.186.70.92] (port=52031 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q22t6-0002We-R7 for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 10:48:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q22t2-0006Mc-MX for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 10:48:48 -0400 Received: from vms173013pub.verizon.net ([206.46.173.13]:61118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q22t2-0006MK-Hd for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 10:48:44 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LIG009GFRSPGO70@vms173013.mailsrvcs.net> for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 09:48:31 -0500 (CDT) In-reply-to: Message from Chao LU of "Tue\, 22 Mar 2011 10\:25\:48 EDT." 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: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Q2hhbyBMVSA8bG9vY2hhb0BnbWFpbC5jb20+IHdyb3RlOg0KDQo+IERlYXIgYWxsLA0KPiANCj4g SnVzdCB3cml0aW5nIHRvIHNlZSBpZiBpdCBpcyBwb3NzaWJsZSB0byB1c2UgdmFyaWFibGUgaW4g b3JnLWNhcHR1cmUgY29uZmlndXJhdGlvbiwgbGlrZSB0aGlzDQo+IA0KPiDCoChzZXRxIG9yZy1j YXB0dXJlLXRlbXBsYXRlcw0KPiDCoMKgwqDCoMKgwqDCoMKgwqDCoCAnKCgidCIgIlRvZG8iIGVu dHJ5IChmaWxlICJ+L29yZy9yZWZpbGUub3JnIikgIiogVE9ETyAlP1xuwqAgJWlcbsKgICVhIiA6 cHJlcGVuZCB0KSkpDQo+IMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoCAtLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0NCj4gwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDC oMKgwqDCoMKgwqDCoMKgIFwtLS1Ib3cgY291bGQgSSB1c2UtPiAoY29uY2F0IE15LURyb3Bib3gt UGF0aA0KPiAicmVmaWxlLm9yZyIpDQo+IA0KPiBTaW5jZSBJIHB1dCBhbGwgbXkgZmlsZXMgaW4g RHJvcGJveCwgYW5kIHRoZSBNeS1Ecm9wYm94LVBhdGggaGFzIGRpZmZlcmVudCB2YWx1ZXMgdW5k ZXIgTUFDIGFuZA0KPiBNJFdpbmRvd3MuDQo+IA0KDQpTZWFyY2ggZm9yICJiYWNrdGljayIgb24g Z21hbmUgLSBzZWUgZS5nLiB0aGUgZm9sbG93aW5nIHBvc3Q6DQoNCiAgIGh0dHA6Ly90aHJlYWQu Z21hbmUub3JnL2dtYW5lLmVtYWNzLm9yZ21vZGUvMjkxNjMvZm9jdXM9MjkxODANCg0KTmljaw0K DQo= From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: Using Variable in Org-capture configuration Date: Tue, 22 Mar 2011 09:49:25 -0500 Message-ID: <4D88B6F5.9090304@ccbr.umn.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=52557 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q22tu-0003Df-95 for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 10:49:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q22tm-0006Yk-Dl for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 10:49:38 -0400 Received: from walleye.ccbr.umn.edu ([128.101.116.11]:3466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q22tm-0006Xz-8e for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 10:49:30 -0400 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 Chao, I believe I had the exact same issue, caused the exact same use case, i.e., Dropbox. Read David's answer and see if it helps: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg29029.html 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. > > Thanks, > > Chao 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 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--