From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: error in org-remember Date: Wed, 16 Sep 2009 11:35:09 -0400 Message-ID: <7834.1253115309@alphaville.usa.hp.com> References: <5236d6f90909160743m40ec6858h5e0c0149c68938ed@mail.gmail.com> <5236d6f90909160814h37ea3c50tf1fbaa54e3869bc5@mail.gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnwYa-0004A9-BM for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 11:36:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnwYU-00049F-Ny for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 11:36:30 -0400 Received: from [199.232.76.173] (port=41913 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnwYU-00049C-Ld for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 11:36:26 -0400 Received: from g1t0029.austin.hp.com ([15.216.28.36]:45929) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MnwYU-0002Dh-CS for emacs-orgmode@gnu.org; Wed, 16 Sep 2009 11:36:26 -0400 In-Reply-To: Message from Xin Shi of "Wed, 16 Sep 2009 11:14:56 EDT." <5236d6f90909160814h37ea3c50tf1fbaa54e3869bc5@mail.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: Xin Shi Cc: emacs-orgmode Xin Shi wrote: > On Wed, Sep 16, 2009 at 10:43 AM, Xin Shi 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