From: Carsten Dominik <dominik@science.uva.nl>
To: Patrick Drechsler <patrick@pdrechsler.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: customizing C-l (inserting link with file:) for dual-boot
Date: Thu, 28 Sep 2006 19:33:59 +0200 [thread overview]
Message-ID: <3312e9e4b5f35859c7f4b0c387e18e88@science.uva.nl> (raw)
In-Reply-To: <efginc$hud$1@sea.gmane.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
prev parent reply other threads:[~2006-09-28 17:34 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
2006-09-28 13:29 ` Patrick Drechsler
2006-09-28 17:33 ` Carsten Dominik [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3312e9e4b5f35859c7f4b0c387e18e88@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.