I'd like to configure my shell to automatically jump to the first error, so that I can easily visit the file at the line number where the error occurred. However, I'm coming up short when looking for hooks, functions, or filters to make use of. Essentially, I want to run `compilation-next-error` whenever a compilation finishes with errors.
​
In case you haven't tried `compilation-shell-minor-mode` inside an inferior shell, please give it a try. You won't regret it. It also works with vterm, but you need to do a little extra work to make sure the key bindings don't conflict with each other.