Re: Emacs setup

2024-10-10 Thread Kenneth Flak
It's been a while, but I'm returning to lilypond now, and I still have some unresolved issues with emacs and lilypond, that I'm hoping you all can help me out with. First of all, how can I set pdf-tools to be the default viewer? Right now I have (customize-set-variable 'LilyPond-pdf-command "zat

Re: Emacs setup

2024-07-06 Thread Laurie Savage
You can ignore my previous email! I have done some more digging and found the S-Left Tab (sorry, S-(left-iso)) binding. Laurie On Sun, 7 Jul 2024 at 10:04, Laurie Savage wrote: > I used the AucTeX package for editing LaTeX files in Emacs long ago when I > taught Physics. It had some keystrokes

Re: Emacs setup

2024-07-06 Thread Laurie Savage
I used the AucTeX package for editing LaTeX files in Emacs long ago when I taught Physics. It had some keystrokes that let the user create environments and tags with combinations like C-c v, C-c e etc (it's long ago so forgive my memory ). Is their any way of accessing auto-complete for Lilypond en

Re: Emacs setup

2024-07-06 Thread Immanuel Litzroth
Fair enough: "it" refers to the lilypond elisp code which provides integration between emacs and lilypond and utils for editing elisp code. That code is installed by the lilypond installer. Immanuel On Sat, Jul 6, 2024 at 6:17 PM waterhorsemusic wrote: > What is "it?" > > It is useful to edit me

Re: Emacs setup

2024-07-06 Thread waterhorsemusic
What is "it?" It is useful to edit messages to make it easier to follow the thread. I do always use the latest developer version of Lilypond and have always had to do something to get lilypond-mode to work in Emacs on Linux only when I get a new computer. After that lilypond-mode works works for

Re: Emacs setup

2024-07-06 Thread Immanuel Litzroth
It is installed when/where you install lilypond. Immanuel On Sat, Jul 6, 2024 at 4:03 PM Ben Bradshaw wrote: > Is it not being included by default a recent change? I have no memory of > needing to ever install lilypond mode. Or is it installed when you install > lilypond by default? > > On Sat,

Re: Emacs setup

2024-07-06 Thread Ben Bradshaw
Is it not being included by default a recent change? I have no memory of needing to ever install lilypond mode. Or is it installed when you install lilypond by default? On Sat, Jul 6, 2024, 1:09 AM Immanuel Litzroth wrote: > lilypond mode is not included in emacs by default (at least not up unti

Re: Emacs setup

2024-07-06 Thread savage.laurie
I'll  give it a go.Laurie.Sent from my Galaxy Original message From: Immanuel Litzroth Date: 6/7/24 5:38 pm (GMT+10:00) To: Laurie Savage Cc: Ben Bradshaw , Kenneth Flak , Gilles Sadowski , Lily Pond Subject: Re: Emacs setup The '(setq auto-mode ... ' inv

Re: Emacs setup

2024-07-06 Thread Immanuel Litzroth
The '(setq auto-mode ... ' invocation does nothing except make emacs aware that any file ending in .ily is a lilypond file and it needs to use lilypond mode for that file It will not put the any directory on the lilypond include path (see https://lilypond.org/doc/v2.24/Documentation/notation/inclu

Re: Emacs setup

2024-07-06 Thread Immanuel Litzroth
lilypond mode is not included in emacs by default (at least not up until 30 prerelease). What is included in org mode is support for org mode lilypond blocks: > ./lisp/org/ob-lilypond.el but that don't get you very far without lilypond and it's mode. Immanuel On Sat, Jul 6, 2024 at 4:09 AM Ben B

Re: Emacs setup

2024-07-05 Thread Laurie Savage
Thanks Ben, I added this stanza to my emacs.init and it loaded my includes with their .ily extension, although I needed to specify their full path which is unnecessary in Frescobaldi once you've edited its preferences. (setq auto-mode-alist (cons '("\\.ily$" . LilyPond-mode) auto-mode-alist

Re: Emacs setup

2024-07-05 Thread Ben Bradshaw
My recollection is that lilypond mode is included by default in emacs now. I think you should just have to load the library. Have you tried the settings from a few messages ago in this thread? On Fri, Jul 5, 2024, 8:05 PM Laurie Savage wrote: > I've fiddled with Emacs and Lilypond but it didn't

Re: Emacs setup

2024-07-05 Thread Laurie Savage
I've fiddled with Emacs and Lilypond but it didn't find my includes files that I keep in a directory in my /home directory. I tried setting that through the settings buffer for Lilypond mode but it obviously didn't take. Has anybody found a video tutorial showing its use? Laurie On Sat, 6 Jul 2

Re: Emacs setup

2024-07-05 Thread Ben Bradshaw
Yeah pdf-tools is a good way to view PDFs within emacs. You can install it from the emacs package manager. On Fri, Jul 5, 2024, 1:41 PM Kenneth Flak wrote: > Aha, getting closer! This is all very helpful. I suspect I'm still > missing a couple of pieces of the puzzle, but I'm getting > something

Re: Emacs setup

2024-07-05 Thread Kenneth Flak
Aha, getting closer! This is all very helpful. I suspect I'm still missing a couple of pieces of the puzzle, but I'm getting something out of xpdf. I still need to figure out what/how this whole pdf-tools thing is all about, though. Displaying pdfs inside emacs, perhaps? Best, K "Ben Bradshaw

Re: Emacs setup

2024-07-05 Thread Ben Bradshaw
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 hav

Re: Emacs setup

2024-07-05 Thread Immanuel Litzroth
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 wrote: > Thanks a lot, Ben! This seems to work very nice

Re: Emacs setup

2024-07-05 Thread Kenneth Flak
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" writes: > For me on Arch, I have to do this in my emacs init file: > (autoload 'LilyPond-mode "lilypond-mode") > (se

Re: Emacs setup

2024-07-04 Thread Ben Bradshaw
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

Re: Emacs setup

2024-07-04 Thread Gilles Sadowski
Hello. Le jeu. 4 juil. 2024 à 17:05, Kenneth Flak a écrit : > > "Kenneth Flak" 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... Howe

Emacs setup

2024-07-04 Thread Kenneth Flak
"Kenneth Flak" 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.