I have this function attach to enter:
(defun new-line-and-indent-fix ()
(interactive)
(newline)
(indent-for-tab-command))
and in YAML mode it insert indent when I type enter
before enter (| is cursor)
mc_autosave_progress:
route: /@plac-budowy@/autozapis/{type}/{id}
target: { controller: MyConstruction, process: autosave }
requirements: { type: 'progress', id: \d+ }
suffix: .json
mc_autosave:|
after
mc_autosave_progress:
route: /@plac-budowy@/autozapis/{type}/{id}
target: { controller: MyConstruction, process: autosave }
requirements: { type: 'progress', id: \d+ }
suffix: .json
mc_autosave:
|
I have the same behaviour when I use just newline.