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

No indentation on yas-expand #143

Open nordlow opened 4 years ago

nordlow commented 4 years ago

aggressive-indent--keep-track-of-changes is not run when I do yasnippet expand because it doesn't run any of the hooks

(add-hook 'after-change-functions #'aggressive-indent--keep-track-of-changes nil 'local) (add-hook 'after-revert-hook #'aggressive-indent--clear-change-list nil 'local) (add-hook 'before-save-hook #'aggressive-indent--process-changed-list-and-indent nil 'local) (add-hook 'kill-buffer-hook #'aggressive-indent--maybe-cancel-timer nil 'local)

that currently trigger an update.

Should I add an advice to yas-expand that calls after-change-functions or should some other hook be set to run aggressive-indent--keep-track-of-changes?