2 ms·
For #2, I've been pretty happy with dtrt-indent (https://github.com/jscheid/dtrt-indent https://github.com/jscheid/dtrt-indent) for DWIM indentation bouncing be
by NateEag 4y ago
For #2, I've been pretty happy with dtrt-indent (https://github.com/jscheid/dtrt-indent https://github.com/jscheid/dtrt-indent) for DWIM indentation bouncing between projects.
I have yet to try apheleia, but I wouldn't be surprised if just enabling apheleia, dtrt-indent, electric-indent-mode (a built-in I don't use, but which may cover your indent-on-paste desire), and editorconfig-mode (https://github.com/editorconfig/editorconfig-emacs https://github.com/editorconfig/editorconfig-emacs) in prog-mode-hook just did what you wanted.