yoshiki / yaml-mode

The emacs major mode for editing files in the YAML data serialization format.
GNU General Public License v3.0
487 stars 132 forks source link

Derive yaml-mode from prog-mode and wrap long lines by default #85

Closed paaguti closed 3 years ago

paaguti commented 3 years ago

HI,

I'm using yaml-mode mainly for cloud-config. I derive it from prog-mode, because deriving it from text-mode adds an extra menu 'Text' which makes little sense for yaml. The interface is (IMvHO) much cleaner and allows me to create a specific YAML menu entry with utility functions for cloud-config file handling.

wasamasa commented 3 years ago

YAML isn't a programming language. Put the hook into your init file instead. And honestly, stop using the menu bar, that's one of the first things an Emacs user disables.

paaguti commented 3 years ago

Hi Vasilij,

1.- YAML is the same sort of thing as a JSON and I use it to programmatically configure VMs. We might be arguing for ages whether that's merits enough to derive from prog-mode or text-mode. But that's just IMvvHO...

2.- About the menu-bar, again there are schools and schools. I have it disabled in my "nox" configurations. However, I keep it in my 'x' and 'mac' inits, mainly because it is a nice way to remember things. Mainly because YAML isn't my main headache. So after 30 years+ Emacs, I indulge in having a couple of menu entries to remind me about my own addons in the different tasks I use emacs for.

Just my very humble .2 cents, /PA

On Sat, 3 Apr 2021 at 09:00, Vasilij Schneidermann @.***> wrote:

YAML isn't a programming language. Put the hook into your init file instead. And honestly, stop using the menu bar, that's one of the first things an Emacs user disables.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/yoshiki/yaml-mode/pull/85#issuecomment-812824194, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZKU4GLWRS6BUYQP4LQZ53TG24IPANCNFSM42J345SQ .

-- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler

bitti commented 1 year ago

YAML isn't a programming language.

YAML Ain't Markup Language.

paaguti commented 1 year ago

Besides the fundamentals, if your setup is using variable pitch font in text mode and fives for programming, it is less of a hassle if yaml derives from prog-mode (same applies to xml)Just my .2 cents /PAEnviado desde mi iPhoneEl 11 mar 2023, a las 20:43, David Ongaro @.***> escribió:

YAML isn't a programming language.

YAML Ain't Markup Language.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>