added tips from masteringemacs.org