[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Should yaml-ts-mode inherit from prog-mode?
From: |
Juri Linkov |
Subject: |
Re: Should yaml-ts-mode inherit from prog-mode? |
Date: |
Sat, 04 Mar 2023 20:45:47 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) |
>>> (add-hook 'text-mode-hook #'flyspell-mode)
>>> (add-hook 'prog-mode-hook #'flyspell-prog-mode)
>>
>> Similarly, I use variable-width fonts for text mode buffers and fixed
>> width fonts for prog-mode buffers. Since in yaml indentation is
>> significant, it would be preferrable for me to have yaml-mode inherit
>> from prog-mode, if only for convenience's sake.
>
> Agreed. I think of prog-mode as “programming mode” as opposed to
> “prose mode”, aka text-mode. In that sense, deriving from prog-mode
> makes more sense to me.
Like there is already 'lisp-data-mode', it could be generalized to 'data-mode'
to have 3 mode hierarchy roots:
prog-mode
text-mode
data-mode
- Re: Should yaml-ts-mode inherit from prog-mode?, (continued)
Re: Should yaml-ts-mode inherit from prog-mode?, Romanos Skiadas, 2023/03/02
- Re: Should yaml-ts-mode inherit from prog-mode?, Richard Stallman, 2023/03/02
- Re: Should yaml-ts-mode inherit from prog-mode?, Romanos Skiadas, 2023/03/04
- Re: Should yaml-ts-mode inherit from prog-mode?, Randy Taylor, 2023/03/19
- Re: Should yaml-ts-mode inherit from prog-mode?, Eli Zaretskii, 2023/03/20
- Re: Should yaml-ts-mode inherit from prog-mode?, Rudolf Schlatte, 2023/03/20
- Re: Should yaml-ts-mode inherit from prog-mode?, Brian Cully, 2023/03/20
- Re: Should yaml-ts-mode inherit from prog-mode?, Eli Zaretskii, 2023/03/20
- Re: Should yaml-ts-mode inherit from prog-mode?, Jostein Kjønigsen, 2023/03/21
- Re: Should yaml-ts-mode inherit from prog-mode?, Eli Zaretskii, 2023/03/21