this post was submitted on 26 Oct 2023
1 points (100.0% liked)

Emacs

311 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

Am I missing something or does the new yaml-ts-mode not having any rules for indentation? Seems odd in a language where indentation is semantically relevant.

GNU Emacs 29.1 (build 2, x86_64-unknown-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2023-08-03

Treesitter grammar installed and loaded via:

(use-package treesit-auto
  :config
  (add-to-list 'global-treesit-auto-modes '(not org-mode))
  (setq treesit-auto-install t)
  (global-treesit-auto-mode))
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 year ago (1 children)

There was quite a debate on wether it should inherit prog-mode here, maybe the fact that it does not is the cause of what you describe ?

https://lists.gnu.org/archive/html/emacs-devel/2023-02/msg01009.html

[–] [email protected] 1 points 1 year ago

Thanks for the link; I read this discussion as well but couldn't be too sure about the impact. I made a copy of the yaml-ts-mode.el and switched it to be derived from prog-mode, but it had no effect on the indentation sadly.