Malabarba / aggressive-indent-mode

Emacs minor mode that keeps your code always indented. More reliable than electric-indent-mode.
850 stars 36 forks source link

Unable to disable for YAML mode #149

Open tigger04 opened 3 years ago

tigger04 commented 3 years ago

Hi

I love the plugin but it doesn't play nice with YAML.

With global-aggressive-indent-mode set, the following has no effect:

(add-to-list 'aggressive-indent-excluded-modes 'yaml-mode)

the contents of aggressive-indent-excluded-modes is:

(evil-normal-state evil-replace-state elm-mode haskell-mode inf-ruby-mode makefile-mode makefile-gmake-mode python-mode sql-interactive-mode text-mode yaml-mode)

when I open a YAML file with yaml-mode enabled, I find that aggressive-indent mode is still active. Occasionally I don't notice and it makes a minor change and wreaks havoc as YAML is intensely sensitive to indentation.