At 10:59 on 25 Sep 2025, Paul Scott wrote:
> On 9/25/25 2:16 AM, Paul Scott wrote:
>> On 9/24/25 11:32 PM, Paul Scott wrote:
>>> On 9/24/25 9:37 PM, Werner LEMBERG wrote:
>>>> Hello Paul,
>>>>
>>>>> I would appreciate some help installing Emacs mode.
>>>>>
>>>>> I have been successful before.
>>>>>
>>>>> I'm looking at:
>>>>>
>>>>> https://lilypond.org/doc/v2.25/Documentation/usage/emacs-mode
>>>>>
>>>>> and not quite understanding it.
>> Interestingly, Emacs mode returned for .ly files just by
>> restoring some other files that I didn't think were
>> related. Unfortunately .ily files contain the music.
>>
>> Hopefully this will lead to a complete fix.
>>
> Can anyone tell me why .ly files activate LilypondMode in
> Emacs and .ily files don't?

Hi Paul,

Perhaps you could include the relevant section from your Emacs config show what 
you're already trying?

You will need to add both file extensions to the auto-mode-alist:

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

Hope this helps.

-- 
Mark Knoop

Reply via email to