|
From: | David Stocker |
Subject: | Re: Lilypond-mode in emacs on WinXP |
Date: | Wed, 09 Jun 2010 17:14:01 -0400 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4 |
Hi Ralph, Browse to the folder "C:\Documents and Settings\User\Application Data\.emacs.d" or, if ".emacs.d" isn't already present, then create a new directory with that name in "Application Data" Make sure you change "User" in the path to whatever your actual user account's name is. In the ".emacs.d" directory, open (or create) a file called "init.el" In that file, paste the following lines: (setq load-path (append (list (expand-file-name "C:/Program Files/LilyPond/usr/share/emacs/site-lisp")) load-path)) (autoload 'LilyPond-mode "lilypond-mode" "LilyPond Editing Mode" t) (add-to-list 'auto-mode-alist '("\\.ly$" . LilyPond-mode)) (add-to-list 'auto-mode-alist '("\\.ily$" . LilyPond-mode)) (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))) Make sure that in the section starting "(expand-file-name "C:/..." points to the "site-lisp" folder in you LilyPond installation. Save the file and try opening a *.ly file in Emacs. BTW, I'm not a programmer and I have no experience with lisp. I adapted this from some instructions I found online (possibly the "Usage" section of the LilyPond docs) and extrapolated from what I knew about the .emacs.d file in my UbuntuStudio installation, which came with LilyPond pre-installed and had Emacs working with lilypond-mode out of the box. I hope this works for you. David On 06/09/2010 03:49 PM, Ralph Palmer wrote: Greetings - -- David Stocker 804-598-3762 http://notesettersinc.com |
[Prev in Thread] | Current Thread | [Next in Thread] |