Hello Istvan,
> Modules support both perl and emacs. Try
>
> modulecmd emacs load modulename
> (setenv "MODULEPATH" "/usr/local/etc/modules")
>
> (defun module-load (module)
> (interactive "s")
> (eval
> (car (read-from-string (shell-command-to-string
> (concat "/path/to/modulecmd emacs load " module))))))
Thanks, I'll try this (in a slightly edited version :-). However,
this only set's environment-variables, so while it would set INFOPATH,
it probably wouldn't set Info-default-directory-list or
Info-directory-list. Let's see, if I eval:
(setenv "INFOPATH" "/usr/local/info:/opt/gnu/info:/software/fweb-1.62/info")
I get:
Info-directory-list's value is
("/software/ispell-3.1.20/info" "/usr/local/info" "/opt/gnu/info" "/software/fweb-1.62/info")
so this doesn't work. But at least I can set up the path, thanks...
Sven
--
_ _ _____ Artificial Intelligence Unit
| | | |/ /_ _| University of Hamburg
| |__| ' < | | phone: +49 (0)40 42883-2576 Vogt-Koelln-Strasse 30
|____|_|\_\___| fax : +49 (0)40 42883-2572 D-22527 Hamburg
mailto:ut...@in... www.informatik.uni-freiburg.de/~utcke
|