On Dec 12, 2010, at 10:07 AM, Alexander Kobel wrote:
> On 2010-12-12 09:48, James Bailey wrote: >> >> How can I pass an argument to the emacs compile command? Usually, when I >> compile something on the command line, I include a directory with tons of >> style sheets with the -I argument. Is it possible to add this to emacs, or >> can I only do it on the command line? Thanks in advance, > > Hi, James, > > C-h v LilyPond-command-alist gives me this: > > Documentation: > AList of commands to execute on the current document. > > The key is the name of the command as it will be presented to the > user, the value is a cons of the command string handed to the shell > after being expanded, and the next command to be executed upon > success. The expansion is done using the information found in > LilyPond-expand-list. [...] > > Value: > (("LilyPond" "Lilypond %s" "%s" "%l" "View") > [...]) > > So I assume it should be enough to customize the "LilyPond" entry to > ("LilyPond" "Lilypond <your-options> %s" "%s" "%l" "View") > and go for it. (You can click on the customize text in the variable > documentation to yield the corresponding customization buffer.) > Of course, this only applies to the C-c C-c compilation command of the > LilyPond-mode; if you use the default M-x compile, you're both free and > forced to give a shell command, and override the default as well. > > > Cheers, > Alexander Thanks, it worked! I added it to my ~/.emacs! _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user