Skip to content

Commit 787ff4b

Browse files
Borsodi, RegoBorsodi, Rego
authored andcommitted
Fix yaml indentation.
1 parent 2472f2c commit 787ff4b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lisp/languages/init-yaml.el

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
(add-to-list 'auto-mode-alist '("\\.yaml\\'" . yaml-ts-mode))
1111
(add-to-list 'auto-mode-alist '("\\.clang-format\\'" . yaml-ts-mode))
1212
(add-to-list 'auto-mode-alist '("\\.clangd\\'" . yaml-ts-mode))
13+
:hook
14+
((yaml-ts-mode . (lambda ()
15+
(setq tab-width 2)
16+
(setq-local indent-line-function #'insert-tab)
17+
)))
1318
))
1419

1520

0 commit comments

Comments
 (0)