hookify

https://github.com/Silex/hookify.git

git clone 'git://github.com/Silex/hookify.git'
1

Hookify

Interactive commands to create temporary hooks.

Installation

The recommended way to install hookify is through MELPA.

Otherwise, simply add hookify.el to your load-path and then (require 'hookify).

Commands

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.

Examples

M-x hookify after-save-hook RET (shell-command “systemctl restart nginx”)

M-x hookify after-save-hook RET (copy-file (buffer-file-name) “~/backup.txt”)

Contributions welcome!

Either as suggestions or as pull requests by opening tickets on the issue tracker.