Cleaned up automode list. Added hooks to get tab completion to use
smart-tab.