a small collection of useful editing macros