master a57a3fd1abc: Set 'tab-width' to 2 in 'yaml-ts-mode'
Eli Zaretskii <[email protected]>
| Newsgroups | gmane.emacs.diffs |
|---|---|
| Message-ID | <[email protected]> |
branch: master commit a57a3fd1abcbc90aa263641bb4ad74e38027a224 Author: James Cherti <[email protected]> Commit: Eli Zaretskii <[email protected]> Set 'tab-width' to 2 in 'yaml-ts-mode' * lisp/textmodes/yaml-ts-mode.el (yaml-ts-mode): Set 'tab-width' to 2 locally, as YAML conventionally uses 2 space indentation. (Bug#81257) --- lisp/textmodes/yaml-ts-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/textmodes/yaml-ts-mode.el b/lisp/textmodes/yaml-ts-mode.el index 5afd4d2d111..37925f69782 100644 --- a/lisp/textmodes/yaml-ts-mode.el +++ b/lisp/textmodes/yaml-ts-mode.el @@ -274,6 +274,7 @@ Calls REPORT-FN directly." ;; Indentation. (setq-local indent-tabs-mode nil) + (setq-local tab-width 2) ;; Font-lock. (setq-local treesit-font-lock-settings yaml-ts-mode--font-lock-settings)