fix savehistory, add more google cd hooks, add some emacs macros