emacs-devel
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]