added nice tricks from masteringemacs