Call the capable editor programmatically. I would expect Emacs to do this too, but since I know Vim can, here is an example made in a simple script:
% <scmindent.zsh
This runs Vims = ( 'equalprg' ) from the top ( gg ) to the bottom ( G ) file, then writes and exits. So this is similar to seds in-place ( -i ) mode. You can configure it to output my-pretty-file.scm . Also configure it to run through multiple files or have a script loop.
In fact, it is completely general - a good template for any file that requires padding that you want Vim to handle. I did not use it with the vanilla .vimrc setting, but editing would be equivalent to editing the indent s .indent.pro configuration file.
source share