Re: installing lilypond-mode for emacs on Linux Done
On 4/7/22 22:36, Paul Scott wrote: On 4/7/22 16:17, David Kastrup wrote: Paul Scott writes: On 4/7/22 15:08, David Kastrup wrote: Paul Scott writes: On 4/7/22 14:15, David Kastrup wrote: Paul Scott writes: On 4/7/22 13:02, David Kastrup wrote: Paul Scott writes: Greetings, I've forgotten too much. I see the instructions for activating lilypond-mode and am not remembering enough to get it to work. TIA for any help, cd elisp make sudo make install I'm not finding a makefile. Have you tried? Yes. I've looked for many files like elisp and lilypond-mode in my attempts. There is GNUmakefile which will get picked up by, well, GNU Make. I hadn't thought of GNUmakefile but according to updatedb and locate there are only two clearly unrelated GNUmakefiles on this computer. Which begs the question: just what have you installed where and how with regard to LilyPond? I have Lily 2.22-2 and 2.23.6 installed. Where and how? 2.22.2: Debian install 2.23.6: .sh file from LilyPond web site. Nothing resolved about a makefile. My solution from various helpful suggestions here and a couple of web sites and my own previous installation: In .emacs.d directory I have the following init.el starting with the following: (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))) Most of my music is in .ily files included in .ly files for each instruments or scores. Thank to everyone who replied, Paul Paul
Re: installing lilypond-mode for emacs on Linux
On Thu 07 Apr 2022 at 22:36:54 (-0700), Paul Scott wrote: > On 4/7/22 16:17, David Kastrup wrote: > > Paul Scott writes: > > > On 4/7/22 15:08, David Kastrup wrote: > > > > Paul Scott writes: > > > > > On 4/7/22 14:15, David Kastrup wrote: > > > > > > Paul Scott writes: > > > > > > > On 4/7/22 13:02, David Kastrup wrote: > > > > > > > > Paul Scott writes: > > > > > > > > > > > > > > > > > Greetings, > > > > > > > > > > > > > > > > > > I've forgotten too much. I see the instructions for > > > > > > > > > activating > > > > > > > > > lilypond-mode and am not remembering enough to get it to work. > > > > > > > > > > > > > > > > > > TIA for any help, > > > > > > > > cd elisp > > > > > > > > make > > > > > > > > sudo make install > > > > > > > I'm not finding a makefile. > > > > > > Have you tried? > > > > > Yes. I've looked for many files like elisp and lilypond-mode in my > > > > > attempts. > > > > > > There is GNUmakefile which will get picked up by, well, > > > > > > GNU Make. > > > > > I hadn't thought of GNUmakefile but according to updatedb and locate > > > > > there are only two clearly unrelated GNUmakefiles on this computer. > > > > Which begs the question: just what have you installed where and how with > > > > regard to LilyPond? > > > > > > I have Lily 2.22-2 and 2.23.6 installed. > > Where and how? > > 2.22.2: Debian install I'm only running bullseye, whereas you appear to be running sid. I can see that the package lilypond-data contains: $ ls -l /etc/emacs/site-start.d/50lilypond-data.el -rw-r--r-- 1 root root 185 Feb 2 2021 /etc/emacs/site-start.d/50lilypond-data.el Do you have this file? It should set lilypond mode for .ly files. Were they working already? If not, I can only suggest that something in your ~/.emacs configuration is interfering with the file's action. However, you may find that lilypond mode is not being set for .ily files. If you are the only user, the easiest fix for that may be to add: (setq auto-mode-alist (cons '("\\.ily$" . LilyPond-mode) auto-mode-alist)) to your ~/.emacs file (creating it if absent). For systems with several users, open the file /etc/emacs/site-start.d/50lilypond-data.el and duplicate the second line, changing .ly to .ily (which has to be done as root). On subsequent upgrades, you will need to confirm that you want to keep your version of that file, as it's a conffile. > 2.23.6: .sh file from LilyPond web site. Cheers, David.
Re: installing lilypond-mode for emacs on Linux
Ah, I'm sorry, I must make one correction. The equals sign was missing. The location flag looks like this: --prefix=/usr/ HC On 4/8/22, Hwaen Ch'uqi wrote: > Of course, this also assumes that you have downloaded the > documentation with the `--documentation' flag. > > HC > > > On 4/8/22, Hwaen Ch'uqi wrote: >> Greetings Paul, >> >> I don't know if this will help, but this is what I do to get >> lilypond-mode working on emacs. The one caveat is that I only have one >> version installed. First, when installing the .sh file, I use the flag >> `--prefix /usr/'. This ensures that the bin file is in the directory >> where I want it - namely, /usr/bin. Then, in my .emacs file, I include >> the following lines: >> >> (add-to-list 'load-path "/usr/lilypond/usr/share/emacs/site-lisp/") >> (add-to-list 'Info-default-directory-list >> "/usr/lilypond/usr/share/info/") >> (autoload 'LilyPond-mode "lilypond-mode") >> (setq auto-mode-alist >> (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist)) >> (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))) >> >> As you can see, this also directs emacs where to search for the >> texinfo files. But when calling Info with `C-h i', you probably will >> still not see the lilyond manuals. That is because the dir file within >> that info directory is empty. So, as root, I put the following lines >> in that file: >> >> LilyPond >> * LilyPond Changes: (lilypond-changes). New features in 2.22.2 since 2.20 >> * LilyPond Contributor's Guide: (lilypond-contributor). >> * LilyPond Essay: (lilypond-essay). >> * LilyPond Extending: (lilypond-extending). >> * LilyPond Internals Reference: (lilypond-internals). >> * LilyPond Learning Manual: (lilypond-learning). >> * LilyPond Music Glossary: (music-glossary). >> * LilyPond Notation Reference: (lilypond-notation). >> * LilyPond Snippets: (lilypond-snippets). >> * LilyPond Usage: (lilypond-usage). >> * LilyPond Web: (lilypond-web). >> >> Everything before the period in each line must stay in that format. >> After the period, you can write whatever description you like. >> >> I hope this helps. >> >> Hwaen Ch'uqi >> >> >> On 4/8/22, Paul Scott wrote: >>> >>> On 4/7/22 16:17, David Kastrup wrote: Paul Scott writes: > On 4/7/22 15:08, David Kastrup wrote: >> Paul Scott writes: >> >>> On 4/7/22 14:15, David Kastrup wrote: Paul Scott writes: > On 4/7/22 13:02, David Kastrup wrote: >> Paul Scott writes: >> >>> Greetings, >>> >>> I've forgotten too much. I see the instructions for activating >>> lilypond-mode and am not remembering enough to get it to work. >>> >>> TIA for any help, >> cd elisp >> make >> sudo make install > I'm not finding a makefile. Have you tried? >>> Yes. I've looked for many files like elisp and lilypond-mode in my >>> attempts. There is GNUmakefile which will get picked up by, well, GNU Make. >>> I hadn't thought of GNUmakefile but according to updatedb and locate >>> there are only two clearly unrelated GNUmakefiles on this computer. >> Which begs the question: just what have you installed where and how >> with >> regard to LilyPond? > > I have Lily 2.22-2 and 2.23.6 installed. Where and how? >>> >>> 2.22.2: Debian install >>> >>> 2.23.6: .sh file from LilyPond web site. >>> >>> Paul >>> >>> >>> >>> >> >
Re: installing lilypond-mode for emacs on Linux
Of course, this also assumes that you have downloaded the documentation with the `--documentation' flag. HC On 4/8/22, Hwaen Ch'uqi wrote: > Greetings Paul, > > I don't know if this will help, but this is what I do to get > lilypond-mode working on emacs. The one caveat is that I only have one > version installed. First, when installing the .sh file, I use the flag > `--prefix /usr/'. This ensures that the bin file is in the directory > where I want it - namely, /usr/bin. Then, in my .emacs file, I include > the following lines: > > (add-to-list 'load-path "/usr/lilypond/usr/share/emacs/site-lisp/") > (add-to-list 'Info-default-directory-list "/usr/lilypond/usr/share/info/") > (autoload 'LilyPond-mode "lilypond-mode") > (setq auto-mode-alist > (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist)) > (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))) > > As you can see, this also directs emacs where to search for the > texinfo files. But when calling Info with `C-h i', you probably will > still not see the lilyond manuals. That is because the dir file within > that info directory is empty. So, as root, I put the following lines > in that file: > > LilyPond > * LilyPond Changes: (lilypond-changes). New features in 2.22.2 since 2.20 > * LilyPond Contributor's Guide: (lilypond-contributor). > * LilyPond Essay: (lilypond-essay). > * LilyPond Extending: (lilypond-extending). > * LilyPond Internals Reference: (lilypond-internals). > * LilyPond Learning Manual: (lilypond-learning). > * LilyPond Music Glossary: (music-glossary). > * LilyPond Notation Reference: (lilypond-notation). > * LilyPond Snippets: (lilypond-snippets). > * LilyPond Usage: (lilypond-usage). > * LilyPond Web: (lilypond-web). > > Everything before the period in each line must stay in that format. > After the period, you can write whatever description you like. > > I hope this helps. > > Hwaen Ch'uqi > > > On 4/8/22, Paul Scott wrote: >> >> On 4/7/22 16:17, David Kastrup wrote: >>> Paul Scott writes: >>> On 4/7/22 15:08, David Kastrup wrote: > Paul Scott writes: > >> On 4/7/22 14:15, David Kastrup wrote: >>> Paul Scott writes: >>> On 4/7/22 13:02, David Kastrup wrote: > Paul Scott writes: > >> Greetings, >> >> I've forgotten too much. I see the instructions for activating >> lilypond-mode and am not remembering enough to get it to work. >> >> TIA for any help, > cd elisp > make > sudo make install I'm not finding a makefile. >>> Have you tried? >> Yes. I've looked for many files like elisp and lilypond-mode in my >> attempts. >>> There is GNUmakefile which will get picked up by, well, >>> GNU Make. >> I hadn't thought of GNUmakefile but according to updatedb and locate >> there are only two clearly unrelated GNUmakefiles on this computer. > Which begs the question: just what have you installed where and how > with > regard to LilyPond? I have Lily 2.22-2 and 2.23.6 installed. >>> Where and how? >> >> 2.22.2: Debian install >> >> 2.23.6: .sh file from LilyPond web site. >> >> Paul >> >> >> >> >
Re: installing lilypond-mode for emacs on Linux
Greetings Paul, I don't know if this will help, but this is what I do to get lilypond-mode working on emacs. The one caveat is that I only have one version installed. First, when installing the .sh file, I use the flag `--prefix /usr/'. This ensures that the bin file is in the directory where I want it - namely, /usr/bin. Then, in my .emacs file, I include the following lines: (add-to-list 'load-path "/usr/lilypond/usr/share/emacs/site-lisp/") (add-to-list 'Info-default-directory-list "/usr/lilypond/usr/share/info/") (autoload 'LilyPond-mode "lilypond-mode") (setq auto-mode-alist (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist)) (add-hook 'LilyPond-mode-hook (lambda () (turn-on-font-lock))) As you can see, this also directs emacs where to search for the texinfo files. But when calling Info with `C-h i', you probably will still not see the lilyond manuals. That is because the dir file within that info directory is empty. So, as root, I put the following lines in that file: LilyPond * LilyPond Changes: (lilypond-changes). New features in 2.22.2 since 2.20 * LilyPond Contributor's Guide: (lilypond-contributor). * LilyPond Essay: (lilypond-essay). * LilyPond Extending: (lilypond-extending). * LilyPond Internals Reference: (lilypond-internals). * LilyPond Learning Manual: (lilypond-learning). * LilyPond Music Glossary: (music-glossary). * LilyPond Notation Reference: (lilypond-notation). * LilyPond Snippets: (lilypond-snippets). * LilyPond Usage: (lilypond-usage). * LilyPond Web: (lilypond-web). Everything before the period in each line must stay in that format. After the period, you can write whatever description you like. I hope this helps. Hwaen Ch'uqi On 4/8/22, Paul Scott wrote: > > On 4/7/22 16:17, David Kastrup wrote: >> Paul Scott writes: >> >>> On 4/7/22 15:08, David Kastrup wrote: Paul Scott writes: > On 4/7/22 14:15, David Kastrup wrote: >> Paul Scott writes: >> >>> On 4/7/22 13:02, David Kastrup wrote: Paul Scott writes: > Greetings, > > I've forgotten too much. I see the instructions for activating > lilypond-mode and am not remembering enough to get it to work. > > TIA for any help, cd elisp make sudo make install >>> I'm not finding a makefile. >> Have you tried? > Yes. I've looked for many files like elisp and lilypond-mode in my > attempts. >> There is GNUmakefile which will get picked up by, well, >> GNU Make. > I hadn't thought of GNUmakefile but according to updatedb and locate > there are only two clearly unrelated GNUmakefiles on this computer. Which begs the question: just what have you installed where and how with regard to LilyPond? >>> >>> I have Lily 2.22-2 and 2.23.6 installed. >> Where and how? > > 2.22.2: Debian install > > 2.23.6: .sh file from LilyPond web site. > > Paul > > > >
Re: installing lilypond-mode for emacs on Linux
On 4/7/22 16:17, David Kastrup wrote: Paul Scott writes: On 4/7/22 15:08, David Kastrup wrote: Paul Scott writes: On 4/7/22 14:15, David Kastrup wrote: Paul Scott writes: On 4/7/22 13:02, David Kastrup wrote: Paul Scott writes: Greetings, I've forgotten too much. I see the instructions for activating lilypond-mode and am not remembering enough to get it to work. TIA for any help, cd elisp make sudo make install I'm not finding a makefile. Have you tried? Yes. I've looked for many files like elisp and lilypond-mode in my attempts. There is GNUmakefile which will get picked up by, well, GNU Make. I hadn't thought of GNUmakefile but according to updatedb and locate there are only two clearly unrelated GNUmakefiles on this computer. Which begs the question: just what have you installed where and how with regard to LilyPond? I have Lily 2.22-2 and 2.23.6 installed. Where and how? 2.22.2: Debian install 2.23.6: .sh file from LilyPond web site. Paul
Re: installing lilypond-mode for emacs on Linux
Paul Scott writes: > On 4/7/22 15:08, David Kastrup wrote: >> Paul Scott writes: >> >>> On 4/7/22 14:15, David Kastrup wrote: Paul Scott writes: > On 4/7/22 13:02, David Kastrup wrote: >> Paul Scott writes: >> >>> Greetings, >>> >>> I've forgotten too much. I see the instructions for activating >>> lilypond-mode and am not remembering enough to get it to work. >>> >>> TIA for any help, >> cd elisp >> make >> sudo make install > I'm not finding a makefile. Have you tried? >>> Yes. I've looked for many files like elisp and lilypond-mode in my >>> attempts. There is GNUmakefile which will get picked up by, well, GNU Make. >>> I hadn't thought of GNUmakefile but according to updatedb and locate >>> there are only two clearly unrelated GNUmakefiles on this computer. >> Which begs the question: just what have you installed where and how with >> regard to LilyPond? > > > I have Lily 2.22-2 and 2.23.6 installed. Where and how? -- David Kastrup
Re: installing lilypond-mode for emacs on Linux
On 4/7/22 15:08, David Kastrup wrote: Paul Scott writes: On 4/7/22 14:15, David Kastrup wrote: Paul Scott writes: On 4/7/22 13:02, David Kastrup wrote: Paul Scott writes: Greetings, I've forgotten too much. I see the instructions for activating lilypond-mode and am not remembering enough to get it to work. TIA for any help, cd elisp make sudo make install I'm not finding a makefile. Have you tried? Yes. I've looked for many files like elisp and lilypond-mode in my attempts. There is GNUmakefile which will get picked up by, well, GNU Make. I hadn't thought of GNUmakefile but according to updatedb and locate there are only two clearly unrelated GNUmakefiles on this computer. Which begs the question: just what have you installed where and how with regard to LilyPond? I have Lily 2.22-2 and 2.23.6 installed. Paul
Re: installing lilypond-mode for emacs on Linux
Paul Scott writes: > On 4/7/22 14:15, David Kastrup wrote: >> Paul Scott writes: >> >>> On 4/7/22 13:02, David Kastrup wrote: Paul Scott writes: > Greetings, > > I've forgotten too much. I see the instructions for activating > lilypond-mode and am not remembering enough to get it to work. > > TIA for any help, cd elisp make sudo make install >>> I'm not finding a makefile. >> Have you tried? > Yes. I've looked for many files like elisp and lilypond-mode in my > attempts. >> There is GNUmakefile which will get picked up by, well, >> GNU Make. > > I hadn't thought of GNUmakefile but according to updatedb and locate > there are only two clearly unrelated GNUmakefiles on this computer. Which begs the question: just what have you installed where and how with regard to LilyPond? -- David Kastrup
Re: installing lilypond-mode for emacs on Linux
Le 07/04/2022 à 20:36, Paul Scott a écrit : Greetings, I've forgotten too much. I see the instructions for activating lilypond-mode and am not remembering enough to get it to work. What have you tried and what does not work? I hadn't thought of GNUmakefile but according to updatedb and locate there are only two clearly unrelated GNUmakefiles on this computer. You might be talking about different things. The GNUmakefile is in the source repository, not in release tarballs. Jean
Re: installing lilypond-mode for emacs on Linux
On 4/7/22 14:15, David Kastrup wrote: Paul Scott writes: On 4/7/22 13:02, David Kastrup wrote: Paul Scott writes: Greetings, I've forgotten too much. I see the instructions for activating lilypond-mode and am not remembering enough to get it to work. TIA for any help, cd elisp make sudo make install I'm not finding a makefile. Have you tried? Yes. I've looked for many files like elisp and lilypond-mode in my attempts. There is GNUmakefile which will get picked up by, well, GNU Make. I hadn't thought of GNUmakefile but according to updatedb and locate there are only two clearly unrelated GNUmakefiles on this computer. Paul
Re: installing lilypond-mode for emacs on Linux
Paul Scott writes: > On 4/7/22 13:02, David Kastrup wrote: >> Paul Scott writes: >> >>> Greetings, >>> >>> I've forgotten too much. I see the instructions for activating >>> lilypond-mode and am not remembering enough to get it to work. >>> >>> TIA for any help, >> cd elisp >> make >> sudo make install > > I'm not finding a makefile. Have you tried? There is GNUmakefile which will get picked up by, well, GNU Make. -- David Kastrup
Re: installing lilypond-mode for emacs on Linux
On 4/7/22 13:02, David Kastrup wrote: Paul Scott writes: Greetings, I've forgotten too much. I see the instructions for activating lilypond-mode and am not remembering enough to get it to work. TIA for any help, cd elisp make sudo make install I'm not finding a makefile. Paul
Re: installing lilypond-mode for emacs on Linux
Paul Scott writes: > Greetings, > > I've forgotten too much. I see the instructions for activating > lilypond-mode and am not remembering enough to get it to work. > > TIA for any help, cd elisp make sudo make install probably. -- David Kastrup
installing lilypond-mode for emacs on Linux
Greetings, I've forgotten too much. I see the instructions for activating lilypond-mode and am not remembering enough to get it to work. TIA for any help, Paul