I'd like to run a script when a file gets saved. (It's an automatic git commit in the vein of git-wip). It's related to Save actions in IntelliJ IDEA, but it mostly attracted answers about code reformatting. It was also asked 3 years ago. The only snippet I found was http://arhipov.blogspot.hu/2011/04/code-snippet-intercepting-on-save.html. So I wonder if things have changed and now it's easy to add a save-hook.