[-- Attachment #1: Type: text/plain, Size: 540 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 719 bytes --]
Chao LU <loochao@gmail.com> 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. > Search for "backtick" on gmane - see e.g. the following post: http://thread.gmane.org/gmane.emacs.orgmode/29163/focus=29180 Nick
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 > <http://refile.org>"*) "* TODO %?\n %i\n %a" :prepend t))) > ------------------------ > \---How could I > use-> (concat My-Dropbox-Path "refile.org <http://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
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
[-- Attachment #1: Type: text/plain, Size: 1050 bytes --] Yes, the latest version of org 7.5 works! Thanks~ Chao On Tue, Mar 22, 2011 at 12:56 PM, Carsten Dominik <carsten.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 > 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 > > [-- Attachment #2: Type: text/html, Size: 1711 bytes --]