From: Nathan Neff <nathan.neff@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Use environment variable for location of templates?
Date: Fri, 19 Jun 2009 11:39:09 -0500 [thread overview]
Message-ID: <211769420906190939w5b608778oec6d1adb739699e1@mail.gmail.com> (raw)
Hello,
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
"tasks.org"))
))
Any help would be appreciated.
Thanks,
--Nate
next reply other threads:[~2009-06-19 16:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-19 16:39 Nathan Neff [this message]
2009-06-20 0:19 ` Use environment variable for location of templates? Jere McDevitt
2009-06-20 2:47 ` Nick Dokos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=211769420906190939w5b608778oec6d1adb739699e1@mail.gmail.com \
--to=nathan.neff@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).