From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Drechsler Subject: customizing C-l (inserting link with file:) for dual-boot Date: Thu, 28 Sep 2006 00:00:08 +0200 Message-ID: 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 1GShhW-0001BI-PA for emacs-orgmode@gnu.org; Wed, 27 Sep 2006 18:16:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GShhU-00019d-8w for emacs-orgmode@gnu.org; Wed, 27 Sep 2006 18:16:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GShhU-00019V-5i for emacs-orgmode@gnu.org; Wed, 27 Sep 2006 18:16:20 -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 1GShmQ-0007PF-Vm for emacs-orgmode@gnu.org; Wed, 27 Sep 2006 18:21:27 -0400 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1GShgE-000762-W0 for emacs-orgmode@gnu.org; Thu, 28 Sep 2006 00:15:03 +0200 Received: from dslb-088-065-084-226.pools.arcor-ip.net ([88.65.84.226]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Sep 2006 00:15:02 +0200 Received: from patrick by dslb-088-065-084-226.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Sep 2006 00:15:02 +0200 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, I've been using Org-Mode for a while now and would like to know how to configure the `C-l'-command (inserting a link) to work on a dual boot system. Here is what I am trying to accomplish: Inserting a link to file works fine using the command `C-l'. But off course it makes a difference which OS I use. I have a working Emacs-Snapshot on a dual boot machine (both similar versions 22.0.50.1). For Org-Mode (and its agenda files) I use the following configuration: ------------------------- (cond ((file-directory-p "C:/Programme") ; do Windows stuff: (setq org-directory "F:\org-stuff") (setq org-remember-templates '((?t "* TODO %?\n %i\n %a" "F:/org-stuff/TODO.org") (?j "* %U %?\n\n %i\n %a" "F:/org-stuff/JOURNAL.org"))) (setq org-agenda-files (quote ("f:/org-stuff/computerstuff.org" "f:/org-stuff/heinzerling.org" "f:/org-stuff/THESIS.org" "f:/org-stuff/privat.org" "f:/org-stuff/TODO.org" "f:/org-stuff/JOURNAL.org"))) ) ((file-directory-p "/home/patrick/") ; do GNU/Linux stuff (setq org-directory "~/data/org-stuff") (setq org-remember-templates '((?t "* TODO %?\n %i\n %a" "~/data//org-stuff/TODO.org") (?j "* %U %?\n\n %i\n %a" "~/data//org-stuff/JOURNAL.org"))) (setq org-agenda-files (quote ("~/data/org-stuff/computerstuff.org" "~/data/org-stuff/heinzerling.org" "~/data/org-stuff/THESIS.org" "~/data/org-stuff/privat.org" "~/data/org-stuff/TODO.org" "~/data/org-stuff/JOURNAL.org"))) ) ) ------------------------- What would be a simple way to adopt this feature when using `C-l'? My GNU/Linux partition is: ~/data My WindowsXPSP2 is: f:/ They both reach the same directory. I'd like `C-l' to think the same way. Can I store the variables "/home/patrick/data/org-stuff" (for GNU/Linux) and "F:\org-stuff" (Windows) in a variable? Any ideas? Regards Patrick