I have recently started using ansible, and yaml-mode
seemed the logical choice for editing playbooks. However, the indentation does not quite work correctly. For example, I might start a task definition like so:
- name: install packages
Adding the next line, it needs to be indented as follows:
- name: install packages
apt: name=emacs24 state=present
However, what yaml-mode
wants to do is:
- name: install packages
apt: name=emacs24 state=present
If I tab again:
- name: install packages
apt: name=emacs24 state=present
In other words, in order to get the correct indentation, I need to manually enter the correct number of spaces instead of using the tab key. Is there a mode where I can get the correct behavior, or a way to configure yaml-mode
to do what I want? Thank you!
yaml-mode-version
returns0.0.12
)?-Q
and I have the desired behavior...This has been happening a lot to me recently. I always tell people to try-Q
, but rarely think to try it myself before asking a question...I guess I will get to bisecting my init once again, haha