LoginSignup
13
12

More than 5 years have passed since last update.

magit使用時git rebase -iでgit-rebase-modeが起動しないようにする

Posted at

magit, 基本的に便利に使ってるけどgit-rebase-modeはちょっとお節介すぎる. commitの順番を変えるためにM-p/M-nで移動する必要がある等のオレオレキーバインド持って来られても困る. 今までのように普通のエディタで修正したい.

git-modes/git-rebase-mode.el at master · magit/git-modes

defadvice使う機会か, と思ったけど, 単純に特定ファイル開いた時の自動起動をなくすだけなら,

;;;###autoload
(add-to-list 'auto-mode-alist
             '("/git-rebase-todo\\'" . git-rebase-mode))

これを無効化してやればいいだけか. auto-mode-alistから削除する.

(setq auto-mode-alist (remove (rassoc 'git-rebase-mode auto-mode-alist) auto-mode-alist))

git-rebase-todoって一時ファイル作成はgit自身の機能なのね

13
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
12