Modified from Purcell's, adding what I need for org-mode and a bunch of random tweaks