I'm using Aquamacs. It can distinguish between <tab>, the actual tab key, and TAB, which comes from typing C-i. I want to bind C-i to 'next-line permanently. This works for that:
(global-set-key (kbd "TAB") 'next-line)
But then mode maps override TAB with auto-complete behavior or whatever and I lose my next-line functionality. I could put my binding in the overriding-terminal-local-map, but I'd rather the mode maps remap <tab> so I can still use the function that the mode assigns to tab.
I can manually rebind tab for every mode I use, but I'm hoping there's an easy way to redirect all the TAB mappings to the tab key without messing up C-i.