From 2f32571fcdb93f45388de0b97ab64bc60c6f035e Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 19 Mar 2012 23:49:46 +0000 Subject: [PATCH] Customize magit-log-edit-mode. Hopefully this will help me write better commit messages with fewer spelling mistakes, and without long lines. --- mode-customizations.el | 1 + mode-customizations/magit-log-edit-mode.el | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 mode-customizations/magit-log-edit-mode.el diff --git a/mode-customizations.el b/mode-customizations.el index 54e4500..b899caf 100644 --- a/mode-customizations.el +++ b/mode-customizations.el @@ -9,6 +9,7 @@ (load-file (config-path "mode-customizations/feature-mode.el")) (load-file (config-path "mode-customizations/js-mode.el")) (load-file (config-path "mode-customizations/markdown-mode.el")) +(load-file (config-path "mode-customizations/magit-log-edit-mode.el")) (load-file (config-path "mode-customizations/php-mode.el")) (load-file (config-path "mode-customizations/python-mode.el")) (load-file (config-path "mode-customizations/ruby-mode.el")) diff --git a/mode-customizations/magit-log-edit-mode.el b/mode-customizations/magit-log-edit-mode.el new file mode 100644 index 0000000..25fa8c9 --- /dev/null +++ b/mode-customizations/magit-log-edit-mode.el @@ -0,0 +1,7 @@ +(add-hook 'magit-log-edit-mode-hook + (lambda () + (flyspell-mode) + (linum-mode t) + (auto-fill-mode) + (setq fill-column 72) + (fci-mode)))