0

windows 10, emacs 26.1,

I use package magit to work with git. Nice.

enter image description here

When I press C-<tab> is collapse/expand recent commits: enter image description here

Nice. But if I press <tab> magit do same thing as when I press C-<tab>. So press <tab> and C-<tab> do same things.

How I can disable C-<tab>. I want to bind C-<tab> to another command (no magit command).

a_subscriber
  • 3,854
  • 1
  • 17
  • 47
  • 1
    You don't need to disable `C-`. If you want to bind it to another command, just do that, there's no need to disable it first. – Tyler Nov 29 '18 at 14:35
  • but note for instance https://emacs.stackexchange.com/questions/352/how-to-override-major-mode-bindings – andrej Nov 29 '18 at 15:49

1 Answers1

4

C-<tab> is bound to magit-section-cycle whereas <tab> is bound to magit-section-toggle. So they are not the same but just happen to do the same in certain (but not all) situations.

If you still want to disable this then the following seems to work

(with-eval-after-load 'magit-status
  (define-key magit-status-mode-map (kbd "C-<tab>") nil))
andrej
  • 983
  • 6
  • 15