Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
12
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

@hash

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

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自身の機能なのね

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
12
Help us understand the problem. What are the problem?