Getting close, I think -
"
So, the first line should actually read:
(setq load-path (append (list
("/usr/local/lilypond/usr/share/emacs/site-lisp")) load-path))
if "/usr/local/lilypond/usr/share/emacs/site-lisp" is the (apparently
appropriate) result of a $locate on /emacs/site-lisp?
Ralph
On Wed, Mar 4, 2009 at 12:13 PM, David Stocker
<address@hidden <mailto:address@hidden>> wrote:
In the file /init.el/ paste in the following lines:
(setq load-path (append (list (expand-file-name
"~/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)))
And in the first line where it says /expand-file-name
"~/emacs/site-lisp"/ paste in the full path to your
/emacs/site-lisp folder in your LilyPond installation. It will be
/home//user//lilypond/usr/share/emacs/site-lisp if you installed
LilyPond in your home folder. Don't forget to change /user/ in the
path.
Save the file and try opening a .ly file with emacs. If it works,
the code will turn pretty colors and there will be a 'lilypond'
menu at the top amongst the others.
Ralph Palmer wrote:
Dave -
Okay, in home/rpalmer/, I've got a .emacs.d. The only thing
that contains is auto-save-list (a directory), which is empty.
I'll create the init.el file in ~/.emacs.d.
Ralph
On Wed, Mar 4, 2009 at 11:59 AM, Ralph Palmer
<address@hidden <mailto:address@hidden>
<mailto:address@hidden
<mailto:address@hidden>>> wrote:
Dave,
Does it make any/much/a significant difference that I'm running
8.10? I would think anything that worked under 8.04 should work
under 8.10.
Ralph
On Wed, Mar 4, 2009 at 11:23 AM, David Stocker
<address@hidden
<mailto:address@hidden>
<mailto:address@hidden
<mailto:address@hidden>>>
wrote:
It shouldn't be this hard to set up lilypond-mode for emacs
under Ubuntu 8.04.
Ralph, check in your home folder and see if there is a
folder
called .emacs.d and if there is a file in that folder named
init.el
It should be there. If not, create that file and
folder. We're
going to get this working.
Dave
Valentin Villenave wrote:
2009/3/4 Ralph Palmer <address@hidden
<mailto:address@hidden>
<mailto:address@hidden
<mailto:address@hidden>>>:
I tried M-x lilypond-mode, and got an emacs error
message that lilypond-mode
couldn't be found.
Anyone have a suggestion?
Mmmh... jEdit?
OK, I'm out :)
Regards,
Valentin
_______________________________________________
lilypond-user mailing list
address@hidden
<mailto:address@hidden> <mailto:address@hidden
<mailto:address@hidden>>
http://lists.gnu.org/mailman/listinfo/lilypond-user
-- Ralph Palmer
Montague City, MA
USA
address@hidden
<mailto:address@hidden>
<mailto:address@hidden
<mailto:address@hidden>>
--
Ralph Palmer
Montague City, MA
USA
address@hidden <mailto:address@hidden>
<mailto:address@hidden
<mailto:address@hidden>>
--
Ralph Palmer
Montague City, MA
USA
address@hidden <mailto:address@hidden>