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).

2
  • 1
    You don't need to disable C-<tab>. If you want to bind it to another command, just do that, there's no need to disable it first.
    – Tyler
    Commented Nov 29, 2018 at 14:35
  • but note for instance emacs.stackexchange.com/questions/352/…
    – andrej
    Commented Nov 29, 2018 at 15:49

1 Answer 1

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))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.