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 #144

Open nordlow opened 4 years ago

nordlow commented 4 years ago

aggressive-indent--keep-track-of-changes is not run when I run yas-expand because it doesn't trigger any call of 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)

Should I advice yas-expand to (run-hooks after-change-functions) or should some other hook be set to run aggressive-indent--keep-track-of-changes?