LoginSignup
6
5

More than 5 years have passed since last update.

magitのcommitモードは"git-commit-mode"だってさ

Last updated at Posted at 2014-05-25

最近のmagitでは"git-commit-mode"だそうです。
以前は"magit-log-edit-mode"だったとのことですが、変わったみたいです。
https://github.com/magit/magit-log-edit

自動折り返しを切ろうとしても効かないので調べたらそういうことで。

最近はmagitさん、デフォルトで72文字で折り返してくれるんだけど、日本語でコミットメッセージ書く場合、この設定はちと不便なのですよね。。。


(追記 2015.04.16)
おそらく magit のバージョンアップによって以前の設定が効かなくなっていた。
現在(magit-20150320.1639 にて確認)はこちらの設定が必要だった。(調べたところ auto-fill-mode でやっていた)

;; 72 文字折り返しをオミット
(add-hook 'git-commit-mode-hook (setq auto-fill-mode nil))

(以前のバージョンでの設定)

;; 72 文字折り返しをオミット
(add-hook 'git-commit-mode-hook 'turn-off-auto-fill)
6
5
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
6
5