Okay.
If you still want to enable lilypond-mode in Emacs, go to
/home/yourusername/.emacs.d and edit the file called "init.el"
If the directory or the file (or both) don't exist, then create them.
In init.el, paste in the following:
**begin copy and paste section**
(setq load-path (append (list (expand-file-name
"/usr/local/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)))
**end copy and paste section**
If something similar was already there, just delete it first and paste
in what you've got above. Save the file and exit. That should be it. You
should be good to go. If you change your LilyPond installation in any
way (like uninstalling the repositories version and installing a newer
version using the executable from the website), then you'll most likely
have to change init.el to reflect the new location of the lilypond-mode
files.
Hope this helps.
David
Ralph Palmer wrote:
Hi, David -
I installed through Synaptic, but by downloading from the LilyPond
site, because the regular Ubuntu repositories didn't have 2.12.2. I'm
not sure, but I think the Ubuntu repositories were only up to 2.10 at
that point. At any rate, the repostitories are at 2.12.1 now, so I
think I would have to uninstall and re-install if I were to go to an
Ubuntu official install. I have :
/usr/local/lilypond/usr/share/emacs/site-lisp/lilypond-mode.el
Hmmm. I think maybe I'll try vim.
Ralph
On Wed, Sep 16, 2009 at 9:52 PM, David Stocker
<dstoc...@thenotesetter.com <mailto:dstoc...@thenotesetter.com>> wrote:
Hi Ralph,
To my novice eyes, it seems there is one of two possible issues here:
1. The path indicated in your "init.el" file, which is supposed to
point to the lilypond-mode files in your LilyPond installation
folder is incorrect, or
2. "init.el" points to the place where the lilypond-files are
supposed to be, but the files are missing.
How did you install LilyPond? Did you do it through Add/Remove or
Synaptic, or by downloading the executable from the LilyPond site?
Ralph Palmer wrote:
Hi, I've been here before, but I've still got a problem.
I'm running Ubuntu (Jaunty Jackalope), Lilypond 2.12.2, and
emacs 22.2.1.
Whenever I try to open a .ly file in emacs, I get :
File mode specification error: (file-error "Cannot open load
file" "lilypond-mode")
Has anyone else had this problem and/or found a fix? I tried
some instructions I got a while back from someone on the
lilypond user list, and they didn't work. I re-installed
emacs, and no joy. I then tried following the instructions
again, and still no luck. Any suggestions?
Or is there another helpful text editor (with highlighting),
other than jedit (with seems to be slow and resource
intensive, in my experience)?
Thanks for your time and attention,
Ralph
--
Ralph Palmer
Montague City, MA
USA
palmer.r.vio...@gmail.com <mailto:palmer.r.vio...@gmail.com>
<mailto:palmer.r.vio...@gmail.com
<mailto:palmer.r.vio...@gmail.com>>
------------------------------------------------------------------------
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org <mailto:lilypond-user@gnu.org>
http://lists.gnu.org/mailman/listinfo/lilypond-user
--
Ralph Palmer
Montague City, MA
USA
palmer.r.vio...@gmail.com <mailto:palmer.r.vio...@gmail.com>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user