https://github.com/Silex/hookify.git
git clone 'git://github.com/Silex/hookify.git'
Interactive commands to create temporary hooks.
The recommended way to install hookify is through MELPA.
Otherwise, simply add hookify.el
to your load-path and then (require 'hookify)
.
M-x hookify asks for a hook, and then for some elisp to run when that hook triggers.
With a prefix argument, removes the function from the hook.
M-x hookify after-save-hook RET (shell-command “systemctl restart nginx”)
~/backup.txt
every time it is saved:M-x hookify after-save-hook RET (copy-file (buffer-file-name) “~/backup.txt”)
Either as suggestions or as pull requests by opening tickets on the issue tracker.