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
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.txtevery 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.