Installation: Put the smartrep.el to your load-path. And add to .emacs: (require 'smartrep)