On 9/25/25 11:29 AM, David Wright wrote:
On Thu 25 Sep 2025 at 10:59:07 (-0700), Paul Scott wrote:
Can anyone tell me why .ly files activate LilypondMode in Emacs and
.ily files don't?
Possibly because of the first reply in the thread, which only has:

   (setq auto-mode-alist
       (cons '("\\.ly$" . LilyPond-mode) auto-mode-alist))

and lacks "\\.ily$" , whereas …/share/emacs/site-lisp/lilypond-init.el
has:

   (add-to-list 'auto-mode-alist '("\\.ly\\'" . lilypond-mode))
   (add-to-list 'auto-mode-alist '("\\.ily\\'" . lilypond-mode))

You need both extensions mentioned explicitly.

Cheers,
David.

Thank you, everyone!

Paul



Reply via email to