From: Heikki Junes Date: Sat, 16 Nov 2002 10:06:55 +0000 (+0000) Subject: instructions for an user how to install Emacs-mode. X-Git-Tag: release/1.7.8~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=22ac2d1d92628797a3a9b92589243521bce6fac9;p=lilypond.git instructions for an user how to install Emacs-mode. --- diff --git a/ChangeLog b/ChangeLog index cfea65b36d..114ed4bfc1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-11-16 Heikki Junes + + * Documentation/topdocs/INSTALL.texi: instructions for an user how + to install Emacs-mode. + 2002-11-14 Han-Wen Nienhuys * scm/music-types.scm (music-descriptions): no length for tempo event. diff --git a/Documentation/topdocs/INSTALL.texi b/Documentation/topdocs/INSTALL.texi index 2ff60036d3..86b6d66ed8 100644 --- a/Documentation/topdocs/INSTALL.texi +++ b/Documentation/topdocs/INSTALL.texi @@ -322,24 +322,19 @@ and for the profiling version, I specify a different configuration. An Emacs mode for entering music and running LilyPond is included with the source archive as @file{lilypond-mode.el}, -@file{lilypond-indent.el} and @file{lilypond-font-lock.el}. You -should install these files somewhere in your @var{load-path}. If you -have installed a precompiled LilyPond package, these files can be -found in @file{/usr/share/doc/lilypond-x.y.z/}. - -Add this to your @file{~/.emacs} or @file{~/.emacs.el}, or install this -file in Emacs' @file{site-start.d}: +@file{lilypond-indent.el} and @file{lilypond-font-lock.el}. +You should install these files somewhere in your @var{load-path}. Add, e.g., +@file{~/site-lisp/} to @var{load-path} by appending the following line to your +@file{~/.emacs} or @file{~/.emacs.el}: @quotation @example - ;;; lilypond-init.el --- Startup code for LilyPond mode - - (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))) +(setq load-path (append (list (expand-file-name "~/site-lisp")) load-path)) @end example @end quotation +Place then @file{lilypond-init.el} to @var{load-path}@file{/site-start.d/} +or append it also to your @file{~/.emacs} or @file{~/.emacs.el}. +If you have installed a precompiled LilyPond package, these files can be +found in @file{/usr/share/doc/lilypond-x.y.z/}. If you have the latest LilyPond-1.4.x Debian package, LilyPond-mode is automatically loaded, you not even need to modify your @code{~/.emacs}