emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Use variable filename for remember template?
@ 2009-07-06 22:27 Nathan Neff
  2009-07-07  0:35 ` Matthew Lundin
  2009-07-07  2:42 ` Nick Dokos
  0 siblings, 2 replies; 3+ messages in thread
From: Nathan Neff @ 2009-07-06 22:27 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-07  2:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-06 22:27 Use variable filename for remember template? Nathan Neff
2009-07-07  0:35 ` Matthew Lundin
2009-07-07  2:42 ` Nick Dokos

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).