lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using the emacs interface


From: Nicolas Sceaux
Subject: Re: Using the emacs interface
Date: Sun, 31 Oct 2004 10:47:54 +0100
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

address@hidden (Victor S. Miller) writes:

>>>>>> "Han-Wen" == Han-Wen Nienhuys <address@hidden> writes:
>
> Han-Wen> address@hidden writes:
>>> Victor S. Miller writes:
>>> 
>>> > What do I need to do to get the emacs interface to work properly?
>>> 
>>> Start emacs from the shell you start lilypond from, or add your
>>> LILYPONDPREFIX setting to your ~/.gnomerc
>
> Han-Wen> and don't forget to export the variable.
>
> Thanks, but that didn't work.  I already do this.
>
> I have
>
> export LILYPONDPREFIX=/usr/local/coop/share/lilypond/2.2.6
>
> in my .bashrc.  I start emacs from the same shell where I can
> successfully run lilypond.
>
> I'm puzzled -- it must be some emacs subtlety -- when the emacs lilypond
> interface runs the bin file, where does it go to initialize the
> environment?
>
> Victor

If you're desperate, you can set all needed environment variables
inside emacs with `setenv', for instance:

(let ((version "2.2.6")
      (LilyPond-prefix "/usr/local/coop"))
  (setenv "GS_FONTPATH" (format 
"%s/share/lilypond/%s/pfa:/usr/share/texmf/fonts/type1/public/ec-fonts-mftraced:"
 LilyPond-prefix version))
  (setenv "GS_LIB" (format "%s/share/lilypond/%s/ps:" LilyPond-prefix version))
  (setenv "PATH" (format "%s/bin:%s" LilyPond-prefix (getenv "PATH")))
  (setenv "TEXMF" (format 
"{%s/share/lilypond/%s,!!/usr/local/share/texmf,!!/usr/local/lib/texmf,!!/usr/share/texmf}"
                          LilyPond-prefix version))
  (setenv "datadir" (format "%s/share/lilypond/%s" LilyPond-prefix version))
  (setenv "tmppfadir" 
"/usr/share/texmf/fonts/type1/public/ec-fonts-mftraced/ecrm10.pfa"))

nicolas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]