新しいMagitにしたら動かなくなった

こんなエラーが出た。

Error (magit): git-commit-mode has to be removed

Magit is no longer compatible with the library `git-commit-mode',
which was used in earlier releases.  Please remove it, so that
Magit can use the successor `git-commit' without the obsolete
library getting in the way.  Then restart Emacs.

Error (magit): git-rebase-mode has to be removed

Magit is no longer compatible with the library `git-rebase-mode',
which was used in earlier releases.  Please remove it, so that
Magit can use the successor `git-rebase' without the obsolete
library getting in the way.  Then restart Emacs.

git-commit-mode, git-rebase-modeは最近のMagitだと互換性がないから削除してくださいとのこと。

magitに関連するパッケージが古いことが原因らしい。

対処法としては、

  1. M-x list-package をする
  2. magitに関連しそうなパッケージをキーボードの"d"で選択する。
    この場合git-commit-mode、git-rebase-modeを削除する。
  3. キーボードの"x"で削除を実行してパッケージを削除する。
  4. 削除したらまたmagitをインストールする。
  5. Emacsを再起動する。

これでmagitが動くようになるはず。

新しくなったmagitはこちら。

なんかインデントがなくなって違和感がある…。

ちなみに昔のMagitはこちら。

Stashes: が下に来たから見やすくなった。Stashes:はそんな重要な情報じゃないし確かに上になくて良いと思う。Local:が消えて Remote: の情報が少なくなったのはたまに困ることがありそう。

更新履歴

2015/12/29
1. git-commit-mode、git-rebase-modeを削除するように文章を変更。
2. Emacsを再起動する文言を追加