Welcome to emacs, where hackish is normal ;) I did get point and click, basically by following the GNOME settings on this page https://lilypond.org/doc/v2.23/Documentation/usage/configuring-the-system-for-point-and-click I had to do that even though I'm not using GNOME or a DE at all. You don't have to use pdf-tools (although I agree with Immanuel it is very good and you probably want it) but I got it working in both zathura and xpdf as well.
I did have one caveat, it seems I need to open the pdf in zathura manually instead of using emacs C-c C-c menu. I haven't tried it with pdf-tools yet, so maybe that's just a zathura thing. If you get lilypond-invoke-editor errors it may be that. On Fri, Jul 5, 2024 at 4:25 AM Immanuel Litzroth < immanuel.litzr...@gmail.com> wrote: > I posted a message a while back to get point-and-click +preview working > in emacs a while back. It was titled "Point an Click & emacs", it requires > pdf-tools -- which you want anyway :-) > greetz, > i > > On Fri, Jul 5, 2024 at 9:18 AM Kenneth Flak <kennethf...@protonmail.com> > wrote: > >> Thanks a lot, Ben! This seems to work very nicely indeed (although >> a bit on the hacky side ;-)) >> >> Did you get point-and-click working by any chance? >> >> Best, >> Kenneth >> >> "Ben Bradshaw" <bleeding.fl...@gmail.com> writes: >> >> > For me on Arch, I have to do this in my emacs init file: >> > (autoload 'LilyPond-mode "lilypond-mode") >> > (setq auto-mode-alist >> > (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist)) >> > (setq auto-mode-alist >> > (cons '("\\.lyi$" . LilyPond-mode) auto-mode-alist)) >> > >> > (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))) >> > >> > On Thu, Jul 4, 2024 at 12:50 PM Gilles Sadowski >> > <gillese...@gmail.com> wrote: >> > >> > Hello. >> > >> > Le jeu. 4 juil. 2024 à 17:05, Kenneth Flak >> > <kennethf...@protonmail.com> a écrit : >> > > >> > > "Kenneth Flak" <kennethf...@protonmail.com> writes: >> > > >> > > Sorry, forgot to add subject... Still getting used to mu4e >> > > :-D >> > > Kenneth >> > > >> > > > Hi list, >> > > > >> > > > I've started learning me a bit of emacs, and I would love >> > > > to get >> > > > lilypond working with it as well... However, the >> > > > installation >> > > > instructions in the documentation left me a bit baffled. It >> > > > *seems* I should be able to just require the lilypond >> > > > files, as >> > > > they are nicely tucked away in >> > > > /usr/share/emacs/site-lisp. However, this doesn't do much >> > > > for >> > > > me... Could someone hold my hand a little bit to get this >> > > > set >> > > > up? >> > > > I'm on Arch Linux, using emacs 29.4. >> > >> > On Debian/GNU Linux, it works "out of the box", perhaps due to: >> > >> > $ ls -l /etc/emacs/site-start.d/50lilypond-data.el >> > -rw-r--r-- 1 root root 185 Nov 17 2014 >> > /etc/emacs/site-start.d/50lilypond-data.el >> > >> > HTH, >> > Gilles >> >> >> > > -- > -- A man must either resolve to point out nothing new or to become a slave > to defend it. -- Sir Isaac Newton >