As we discovered in the comments, something has caused reindent-then-newline-and-indent
to get bound to RET
.
I'm not sure where that binding came from, but you should be able to rebind RET
to newline-and-indent
in YAML mode like this:
(add-hook 'yaml-mode-hook
'(lambda ()
(define-key yaml-mode-map "\C-m" 'newline-and-indent)))
or simply to newline
if you don't want automatic indenting of the next line:
(add-hook 'yaml-mode-hook
'(lambda ()
(define-key yaml-mode-map "\C-m" 'indent)))