0

I'd rather use regular text editing functions when rebasing instead of learning magit's bindings.

Is there a way to use magit but disable git-rebase-mode?

4

You can remove git-rebase from auto-mode-alist:

(require 'cl-lib)
(setq auto-mode-alist
      (cl-remove-if (lambda (x) (eq (cdr x) 'git-rebase-mode))
                    auto-mode-alist))
| improve this answer | |
  • (setq auto-mode-alist (rassq-delete-all 'git-rebase-mode auto-mode-alist)) works, without cl-lib. – ideasman42 Jun 19 at 4:42
0

Adding another answer for completeness, when using use-package, this needs to be done from :init, eg:

(use-package magit
  :init
  ;; Don't use magit for interactive rebase
  ;; (has own entire key-map, doesn't allow text-file editing).
  (setq auto-mode-alist (rassq-delete-all 'git-rebase-mode auto-mode-alist)))
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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