Xin Shi <shixin...@gmail.com> wrote: > On Wed, Sep 16, 2009 at 10:43 AM, Xin Shi <shixin...@gmail.com> wrote: > > > ... > > My settings are: > > > > (org-remember-insinuate) > > (setq sx-notes-file-name "~/.notes.org") > > (setq sx-journal-file-name "~/.journal.org") > > (setq org-remember-templates > > '( > > ("Journal" ?j "* %U %?\n\n %i\n %a" sx-journal-file-name) > > ("Notes" ?n "* %^{Title}\n %i\n %a" sx-notes-file-name "Notes") > > ) > > ) > > Any suggestions? > > > I solved the problem by using the file name directly: > > (setq org-remember-templates > '( > ("Journal" ?j "* %U %?\n\n %i\n %a" "~/.journal.org") > ("Notes" ?n "* %^{Title}\n %i\n %a" "~/.notes.org" "Notes") > ) > )
Alternatively, you can use the backquote mechanism in such situations - it allows you to evaluate parts of a (back)quoted expression, by preceding them with commas: (setq sx-notes-file-name "~/.notes.org") (setq sx-journal-file-name "~/.journal.org") (setq org-remember-templates `( ("Journal" ?j "* %U %?\n\n %i\n %a" ,sx-journal-file-name) ("Notes" ?n "* %^{Title}\n %i\n %a" ,sx-notes-file-name "Notes") )) See http://www.gnu.org/software/emacs/manual/html_node/elisp/Backquote.html#Backquote for details. HTH, Nick _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode