emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] Re: Use variable filename for remember template?


From: Matthew Lundin
Subject: [Orgmode] Re: Use variable filename for remember template?
Date: Mon, 06 Jul 2009 19:35:41 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

Nathan Neff <address@hidden> writes:

> 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.

How about the following?

--8<---------------cut here---------------start------------->8---
 (setq org-remember-templates
      '(("Book" ?b "\n* %^{Book Title} %t :READING:
 \n%[~/personal/booktemp.txt]\n"
               "L:journal.org")
       ))
--8<---------------cut here---------------end--------------->8---

Best,
Matt




reply via email to

[Prev in Thread] Current Thread [Next in Thread]