Recently my TAB key started acting very strange. At the left end of the line it indents my code normally, which it should also do if I hit TAB anywhere in the line. But now, if I'm in the middle of the line it tries to do a TAGS search. I don't have a tags file and I don't want one, thank you very much.
I'm using Prelude and believe it has to do with Projectile, which I've never used. When I ask emacs what the keybinding of the TAB key is with C-h k
, it lies and says:
It is bound to TAB.
(indent-for-tab-command &optional ARG)
When I saw this last week I disabled Projectile mode and that helped but now it doesn't seem to help. How can I find out what's binding this key and get rid of it?
C-h l
orM-x view-lossage
. That will show you your last 300 key presses.emacs -Q
. If that doesn't show the behavior then recursively bisect your init file to find the culprit code or setting. If you don't know what code you are using then how can we? UseM-x comment-region
to comment out 1/2, then 3/4, 5/6,... of your init file, to find the cause.