From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Use variable filename for remember template? Date: Mon, 6 Jul 2009 17:27:19 -0500 Message-ID: <211769420907061527x410f47f6n7370768c24fc5ebb@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNweu-00016X-D8 for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 18:27:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNwep-000153-77 for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 18:27:36 -0400 Received: from [199.232.76.173] (port=49327 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNwep-00014x-36 for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 18:27:31 -0400 Received: from mx20.gnu.org ([199.232.41.8]:30479) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MNweo-0005kp-DN for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 18:27:30 -0400 Received: from mail-fx0-f217.google.com ([209.85.220.217]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNweg-000456-II for emacs-orgmode@gnu.org; Mon, 06 Jul 2009 18:27:22 -0400 Received: by fxm17 with SMTP id 17so4222864fxm.42 for ; Mon, 06 Jul 2009 15:27:19 -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 Hello, I am able to successfully read the contents of "/Users/nate/personal/booktemp.txt" into a new remember-note. (setq org-remember-templates '(("Book" ?b "\n* %^{Book Title} %t :READING: \n%[/Users/nate/personal/booktemp.txt]\n" "L:journal.org") )) Now, I'd like to be able to specify an environment variable like $HOME instead of /Users/nate. I'm a lisp beginner, and have tried something like (setq personal-home-dir (getenv "HOME")) (setq org-remember-templates '(("Book" ?b (concat "\n* %^{Book Title} %t :READING: \n%[" personal-home-dir "/personal/booktemp.txt]\n") "L:journal.org") )) but I keep getting "Wrong type argument char-or-string-p" errors. I'm guessing that the org-remember-templates function wants something other than a string, but I don't know where to go from here. Any help is appreciated. Thanks, -Nate