From: Carsten Dominik <dominik@science.uva.nl>
To: Patrick Drechsler <patrick@pdrechsler.de>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: customizing C-l (inserting link with file:) for dual-boot
Date: Thu, 28 Sep 2006 14:10:43 +0200 [thread overview]
Message-ID: <7c818b27c8a04db1cd28fb4a1532a534@science.uva.nl> (raw)
In-Reply-To: <efes9a$lok$1@sea.gmane.org>
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?
- Carsten
On Sep 28, 2006, at 0:00, Patrick Drechsler wrote:
> 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
>
>
>
> _______________________________________________
> 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
next prev parent reply other threads:[~2006-09-28 12:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-27 22:00 customizing C-l (inserting link with file:) for dual-boot Patrick Drechsler
2006-09-28 12:10 ` Carsten Dominik [this message]
2006-09-28 13:29 ` Patrick Drechsler
2006-09-28 17:33 ` Carsten Dominik
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=7c818b27c8a04db1cd28fb4a1532a534@science.uva.nl \
--to=dominik@science.uva.nl \
--cc=emacs-orgmode@gnu.org \
--cc=patrick@pdrechsler.de \
/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).