From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Shelagh Manton Newsgroups: gmane.emacs.help Subject: Re: LilyPond support in Emacs Date: Mon, 14 Jul 2008 12:40:23 +1000 Message-ID: <20080714124023.3b71eb7e@pandora> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216003309 29072 80.91.229.12 (14 Jul 2008 02:41:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2008 02:41:49 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 14 04:42:36 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KIE1L-00075W-A6 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 04:42:36 +0200 Original-Received: from localhost ([127.0.0.1]:46765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIE0S-0003qW-OY for geh-help-gnu-emacs@m.gmane.org; Sun, 13 Jul 2008 22:41:40 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIDzV-0003La-6p for help-gnu-emacs@gnu.org; Sun, 13 Jul 2008 22:40:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIDzT-0003KE-9E for help-gnu-emacs@gnu.org; Sun, 13 Jul 2008 22:40:40 -0400 Original-Received: from [199.232.76.173] (port=35311 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIDzT-0003Jy-11 for help-gnu-emacs@gnu.org; Sun, 13 Jul 2008 22:40:39 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:58710 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KIDzS-00007O-LW for help-gnu-emacs@gnu.org; Sun, 13 Jul 2008 22:40:38 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KIDzQ-0000pr-D3 for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 02:40:36 +0000 Original-Received: from 203-219-222-168-cbr-pow-ts2-2600.tpgi.com.au ([203.219.222.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jul 2008 02:40:36 +0000 Original-Received: from shelagh.manton by 203-219-222-168-cbr-pow-ts2-2600.tpgi.com.au with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jul 2008 02:40:36 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 203-219-222-168-cbr-pow-ts2-2600.tpgi.com.au X-Newsreader: Claws Mail 3.3.1 (GTK+ 2.12.9; i486-pc-linux-gnu) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55528 Archived-At: On Fri, 11 Jul 2008 18:12:44 -0800 q10 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 ----------------------------------------------------------------