[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LilyPond support in Emacs
From: |
Shelagh Manton |
Subject: |
Re: LilyPond support in Emacs |
Date: |
Mon, 14 Jul 2008 12:40:23 +1000 |
On Fri, 11 Jul 2008 18:12:44 -0800
q10 <q101100111000@gmail.com> wrote:
> Hello:
>
> Okay, maybe I don't know how to access it, but it seems that Emacs
> does not support syntax highlighting in LilyPond *.ly files. Please
> show me the plugin if there is one, or add syntax highlighting and
> language support for LilyPond and all the other music notation
> filetypes out there.
>
> Thank you,
> -q10
>
When you install lilypond you already will have the files you need to
highlight lilypond files. You may need to search for them, however.
Hmm... I found them in the systems /usr/share/emacs/site-lisp/
after installing the lilypond package in hardy ubuntu.
Tell emacs where to find them.
perhaps (require 'lilypond-init) might be enough.
Though its worth installing lyqi-mode.
This is what my .emacs file looks like for lilypond
(autoload 'LilyPond-mode "lilypond-mode" "LilyPond Editing Mode" t)
(add-to-list 'auto-mode-alist '("\\.ly$" . LilyPond-mode))
;; adds ~/.elisp/lyqi in the load path
(setq load-path (cons (expand-file-name "~/.elisp/lyqi") load-path))
;; when loading LilyPond-mode, lyqi-mode library will also be loaded.
;; type `C-c q' in LilyPond-mode to switch to lyqi-mode.
(eval-after-load "LilyPond-mode"
'(progn
(load-library "lyqi-mode")
(define-key LilyPond-mode-map "\C-cq" 'lyqi-mode)
(lambda () (turn-on-font-lock))))
Shelagh
--
----------------------------------------------------------------
Jabber: shelagh.manton@gmail.com
----------------------------------------------------------------