Nathan Neff <[email protected]> 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
_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode