watch-buffer.el is a simple way to run a shell command each time an emacs buffer is saved.
Primary LanguageEmacs Lisp