From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Use environment variable for location of templates? Date: Fri, 19 Jun 2009 11:39:09 -0500 Message-ID: <211769420906190939w5b608778oec6d1adb739699e1@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHh7V-0006ET-A6 for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 12:39:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHh7Q-000633-Q0 for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 12:39:16 -0400 Received: from [199.232.76.173] (port=52378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHh7Q-00062p-Ej for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 12:39:12 -0400 Received: from mail-bw0-f216.google.com ([209.85.218.216]:52353) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHh7Q-0000ou-3V for emacs-orgmode@gnu.org; Fri, 19 Jun 2009 12:39:12 -0400 Received: by bwz12 with SMTP id 12so433779bwz.42 for ; Fri, 19 Jun 2009 09:39:10 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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