Andrew Bernard <andrew.bern...@gmail.com> writes:

> Hi David,
>
> Really helpful advice. Except I need a hint or two.
>
> If I create .dir-locals.el thus:
>
> ((LilyPond-mode
>   (LilyPond-lilypond-command . "lilypond -I /tmp")))
>
> when running C-c C-l then only the command ‘lilypond’ is run - the
> customisation is ignored. Do you have to customise the elisp
> definition in entirety?
>
> The idea is to just add -I for the include paths for the libraries of
> code that I have created.

This is rather awkward: all the commands refer to LilyPond-command-menu,
and LilyPond-command-menu evaluates the value of
LilyPond-lilypond-command when first loaded but not afterwards.  So any
subsequent change or customization is ignored until Emacs is restarted,
but directory locals are applied when a mode is loaded and consequently
will always come too late.  I'll take a look at the code and try fixing
it.  Since the code was lifted from a very early version of AUCTeX,
making it work like AUCTeX should likely do the trick.

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to