From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: customizing C-l (inserting link with file:) for dual-boot Date: Thu, 28 Sep 2006 19:33:59 +0200 Message-ID: <3312e9e4b5f35859c7f4b0c387e18e88@science.uva.nl> References: <7c818b27c8a04db1cd28fb4a1532a534@science.uva.nl> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GSzlt-0001yS-Ec for emacs-orgmode@gnu.org; Thu, 28 Sep 2006 13:34:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GSzls-0001wp-60 for emacs-orgmode@gnu.org; Thu, 28 Sep 2006 13:34:05 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSzlr-0001wl-T5 for emacs-orgmode@gnu.org; Thu, 28 Sep 2006 13:34:03 -0400 Received: from [194.134.35.175] (helo=smtp04.wanadoo.nl) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GSzqz-0001cs-Rh for emacs-orgmode@gnu.org; Thu, 28 Sep 2006 13:39:22 -0400 In-Reply-To: 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: Patrick Drechsler Cc: emacs-orgmode@gnu.org On Sep 28, 2006, at 15:29, Patrick Drechsler wrote: > Tim O Callaghan was so kind to give me a tip off-list using the setenv > variable. Since the paths I'm using are not the same in relation to my > different home directories this might be a feasible solution. > > My approach so far doesn't work (probably just my bad lisp): > > > ------------------------- > (cond > ((file-directory-p "C:/Programme") > ; do Windows stuff: > (setenv "DATA_HOME" (expand-file-name "F:/")) > ) > ((file-directory-p "/home/patrick/") > ; do GNU/Linux stuff > (setenv "DATA_HOME" (expand-file-name "~/data")) > ) > ) > (setq org-directory (concat (getenv "DATA_HOME") "/org-stuff")) > (setq org-remember-templates > '((?t "* TODO %?\n %i\n %a" (concat (getenv "DATA_HOME") > "/org-stuff/TODO.org") > (?j "* %U %?\n\n %i\n %a" (concat (getenv "DATA_HOME") > "/org-stuff/JOURNAL.org"))))) > (setq org-agenda-files (quote ((concat (getenv "DATA_HOME") > "/org-stuff/computerstuff.org") > (concat (getenv "DATA_HOME") "/org-stuff/heinzerling.org" ) > (concat (getenv "DATA_HOME") "/org-stuff/THESIS.org" ) > (concat (getenv "DATA_HOME") "/org-stuff/privat.org" ) > (concat (getenv "DATA_HOME") "/org-stuff/TODO.org" ) > (concat (getenv "DATA_HOME") "/org-stuff/JOURNAL.org")))) > ------------------------- > Quote prevents evaulation of concat. You need to do (setq org-agenda-files (list (concat (getenv "DATA_HOME") "/org-stuff/computerstuff.org") (concat (getenv "DATA_HOME") "/org-stuff/heinzerling.org" ) (concat (getenv "DATA_HOME") "/org-stuff/THESIS.org" ) (concat (getenv "DATA_HOME") "/org-stuff/privat.org" ) (concat (getenv "DATA_HOME") "/org-stuff/TODO.org" ) (concat (getenv "DATA_HOME") "/org-stuff/JOURNAL.org"))) > I receive following error message when trying to invoke the agenda from > an org file: > ------------------------- > org-check-agenda-file: Wrong type argument: stringp, (concat (getenv > "DATA_HOME") "/org-stuff/computerstuff.org") > ------------------------- > > TIA > > Patrick > > > > _______________________________________________ > Emacs-orgmode mailing list > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477