emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Use environment variable for location of templates?
@ 2009-06-19 16:39 Nathan Neff
  2009-06-20  0:19 ` Jere McDevitt
  0 siblings, 1 reply; 3+ messages in thread
From: Nathan Neff @ 2009-06-19 16:39 UTC (permalink / raw)
  To: emacs-orgmode


I'm a beginner at lisp/emacs, and realize this is a basic question.

I would like to use an environment variable WORKDIR to specify the
directory where
my remember templates are located.

I would like to have a template located in WORKDIR/tasks.org

Using the code below, when I invoke remember-mode and press "t", I get
the default
remember template instead of the WORKDIR/tasks.org.

;; I can get the value of WORKDIR successfully
(setq org-directory (getenv "WORKDIR"))

(setq org-remember-templates
	("Personal" ?p "* %U %?\n\n  %i\n  %a" "~/Documents/personal/notes.org")	
	("Work Tasks" ?t "* TODO %U %?\n\n  %i\n  %a" (concat org-directory

Any help would be appreciated.


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

end of thread, other threads:[~2009-06-20  2:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-19 16:39 Use environment variable for location of templates? Nathan Neff
2009-06-20  0:19 ` Jere McDevitt
2009-06-20  2:47   ` Nick Dokos

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


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