From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Drechsler Subject: Re: customizing C-l (inserting link with file:) for dual-boot Date: Thu, 28 Sep 2006 15:29:11 +0200 Message-ID: References: <7c818b27c8a04db1cd28fb4a1532a534@science.uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GSvxg-0004Wv-5O for emacs-orgmode@gnu.org; Thu, 28 Sep 2006 09:30:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GSvxf-0004Wf-8z for emacs-orgmode@gnu.org; Thu, 28 Sep 2006 09:29:59 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GSvxf-0004Wc-1e for emacs-orgmode@gnu.org; Thu, 28 Sep 2006 09:29:59 -0400 Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GSw2k-0004US-DW for emacs-orgmode@gnu.org; Thu, 28 Sep 2006 09:35:14 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GSvxR-0000AS-TY for emacs-orgmode@gnu.org; Thu, 28 Sep 2006 15:29:45 +0200 Received: from dslb-088-065-114-221.pools.arcor-ip.net ([88.65.114.221]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Sep 2006 15:29:45 +0200 Received: from patrick by dslb-088-065-114-221.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Sep 2006 15:29:45 +0200 In-Reply-To: <7c818b27c8a04db1cd28fb4a1532a534@science.uva.nl> 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 Hi Carsten, Carsten Dominik wrote: > If you store file names relative to your home directory, then org-mode > should be able to use ~/.... filenames which would be general. Is F: > your home directory? I do not have my org-files in my home directory (neither on GNU/Linux nor on Windows). That is why the expansion of "~" does not seem to help here. Just to clear things up a bit: "F:\" is not my home directory. My home directory under Cygwin is "C:\cygwin\home\home\pduser". "F:\" is a fat32 partition I use to share my data between Windows and GNU/Linux. From GNU/Linux this partition is called "~/data/". 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")))) ------------------------- 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