emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/editorconfig ce5d435839: Add support for some treesit mode


From: ELPA Syncer
Subject: [nongnu] elpa/editorconfig ce5d435839: Add support for some treesit modes (#287)
Date: Mon, 9 Jan 2023 01:59:20 -0500 (EST)

branch: elpa/editorconfig
commit ce5d4358394252f506fc789d46368621dbaaf064
Author: Nasy <nasyxx@gmail.com>
Commit: GitHub <noreply@github.com>

    Add support for some treesit modes (#287)
    
    Includes: c, c++, cmake, csharp, css, java, Python, ruby, rust, yaml
---
 editorconfig.el | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/editorconfig.el b/editorconfig.el
index 87bc0a0a62..f1ceaa2c77 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -183,13 +183,18 @@ This hook will be run even when there are no matching 
sections in
     (awk-mode c-basic-offset)
     (bpftrace-mode c-basic-offset)
     (c++-mode c-basic-offset)
+    (c++-ts-mode c-basic-offset)
     (c-mode c-basic-offset)
+    (c-ts-mode c-basic-offset)
     (cmake-mode cmake-tab-width)
+    (cmake-ts-mode cmake-tab-width)
     (coffee-mode coffee-tab-width)
     (cperl-mode cperl-indent-level)
     (crystal-mode crystal-indent-level)
     (csharp-mode c-basic-offset)
+    (csharp-ts-mode c-basic-offset)
     (css-mode css-indent-offset)
+    (css-ts-mode css-indent-offset)
     (d-mode c-basic-offset)
     (emacs-lisp-mode lisp-indent-offset)
     (enh-ruby-mode enh-ruby-indent-level)
@@ -220,6 +225,7 @@ This hook will be run even when there are no matching 
sections in
     (idl-mode c-basic-offset)
     (jade-mode jade-tab-width)
     (java-mode c-basic-offset)
+    (java-ts-mode c-basic-offset)
     (js-mode js-indent-level)
     (js-jsx-mode js-indent-level sgml-basic-offset)
     (js2-mode js2-basic-offset)
@@ -253,9 +259,12 @@ This hook will be run even when there are no matching 
sections in
     (pug-mode pug-tab-width)
     (puppet-mode puppet-indent-level)
     (python-mode . editorconfig-set-indentation-python-mode)
+    (python-ts-mode . editorconfig-set-indentation-python-mode)
     (rjsx-mode js-indent-level sgml-basic-offset)
     (ruby-mode ruby-indent-level)
+    (ruby-ts-mode ruby-indent-level)
     (rust-mode rust-indent-offset)
+    (rust-ts-mode rust-indent-offset)
     (rustic-mode rustic-indent-offset)
     (scala-mode scala-indent:step)
     (scss-mode css-indent-offset)
@@ -284,7 +293,8 @@ This hook will be run even when there are no matching 
sections in
               web-mode-block-padding
               web-mode-script-padding
               web-mode-style-padding)
-    (yaml-mode yaml-indent-offset))
+    (yaml-mode yaml-indent-offset)
+    (yaml-ts-mode yaml-indent-offset))
   "Alist of indentation setting methods by modes.
 
 Each element looks like (MODE . FUNCTION) or (MODE . INDENT-SPEC-LIST).



reply via email to

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