Copy code from Purcell's emacs configuration
Add Utility Functions