undo some of the random changes.
move create index function for imenu to big setq with everything else.