Many greetings, Actually, I, an ubuntu user, had the same problems when installing LilyPond from the shell script. The emacs subdirectory which you found in the LilyPond directory contains a folder called, I believe, "lisp" The files in this folder are what you especially need. The load-path is the set of directories which emacs initially searches in order to know which packages to immediately call. You can find these list of directories by calling `C-h v' and typing load-path. Choose one, and move the files to that directory. (You may need to do this as root.) Then, add the following lines to your .emacs file:
(autoload 'LilyPond-mode "lilypond-mode") (setq auto-mode-alist (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist)) (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))) This code will also ensure that LilyPond-mode will be called whenever emacs visits a file with a .ly extension. I hope this helps. Hwaen Ch'uqi On 5/28/13, Kevin Barry <barr...@tcd.ie> wrote: > Dear LilyPond users, > > A friend recently persuaded me to try emacs for text editing (LaTeX + > LilyPond), however I can't quite understand the instructions for > installing lilypond-mode, as outlined here: > http://lilypond.org/doc/v2.16/Documentation/usage/text-editor-support > > 'An Emacs mode for entering music and running LilyPond is contained in > the source archive in the ‘elisp’ directory. Do make install to install > it to elispdir.' > > What exactly is the source archive? The download seems to be a shell > script. Does it mean the lilypond folder in /usr/local/? I did find a > folder called elisp (actually there seem to be several on my computer > since guile 2.0 comes with Ubuntu) in > /usr/local/lilypond/usr/share/guile/1.8/lang/elisp/ but doing a make > install only gave an error ('make: *** No rule to make target `install'. > Stop.'). Should I be looking somewhere else? There is an emacs folder > in /usr/local/lilypond/usr/share/emacs/ which seems to contain some of > the files mentioned in the instructions in the documentation, but I > don't understand them: there's no folder anywhere on my computer called > elispdir, and I don't know what a load-path is. Do I just need to add a > line to the ~/.emacs file pointing to this folder? > > K. > > _______________________________________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/listinfo/lilypond-user > _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user