X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lilypond-init.el;h=919b3b5635b88fa54fdaaaf6e1d69adb70672c93;hb=aab300b4e582627497ab12f8ea8609f03a3c8d84;hp=98beddabc54bb60ab3e02711f6b6162cb60b7a47;hpb=9d3df03734443ed214141ca8bf4b6fc32af945a5;p=lilypond.git diff --git a/lilypond-init.el b/lilypond-init.el index 98beddabc5..919b3b5635 100644 --- a/lilypond-init.el +++ b/lilypond-init.el @@ -1,11 +1,20 @@ -;; install this into emacs site-start.d/ +;;; lilypond-init.el --- Startup code for LilyPond mode +;; +;; Instructions, extracted from Documentation/topdocs/INSTALL.texi: -(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))) +;; Emacs mode for entering music and running LilyPond is contained in +;; the source archive as `lilypond-mode.el', `lilypond-indent.el', +;; `lilypond-font-lock.el' and `lilypond.words'. You should install +;; these files to a directory included in your `load-path'. +;; File `lilypond-init.el' should be placed to `load-path/site-start.d/' +;; or appended to your `~/.emacs' or `~/.emacs.el'. +;; As a user, you may want add your source path or, e.g., `~/site-lisp/' to +;; your `load-path'. Append the following line (modified) to your `~/.emacs': +;(setq load-path (append (list (expand-file-name "~/site-lisp")) load-path)) +(autoload 'LilyPond-mode "lilypond-mode" "LilyPond Editing Mode" t) +(add-to-list 'auto-mode-alist '("\\.ly$" . LilyPond-mode)) +(add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock)))