mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Write commit messages with git-commit-mode in style ^_^
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
(load-file (config-path "mode-customizations/emacs-lisp-mode.el"))
|
||||
(load-file (config-path "mode-customizations/erlang-mode.el"))
|
||||
(load-file (config-path "mode-customizations/feature-mode.el"))
|
||||
(load-file (config-path "mode-customizations/git-commit-mode.el"))
|
||||
(load-file (config-path "mode-customizations/haml-mode.el"))
|
||||
(load-file (config-path "mode-customizations/html-mode.el"))
|
||||
(load-file (config-path "mode-customizations/js-mode.el"))
|
||||
|
||||
10
mode-customizations/git-commit-mode.el
Normal file
10
mode-customizations/git-commit-mode.el
Normal file
@@ -0,0 +1,10 @@
|
||||
;; Write commit messages in style
|
||||
(defun customizations-for-git-commit-mode ()
|
||||
(interactive)
|
||||
(flyspell-mode)
|
||||
(linum-mode t)
|
||||
(auto-fill-mode)
|
||||
(subword-mode)
|
||||
(fci-mode))
|
||||
|
||||
(add-hook 'git-commit-mode-hook 'customizations-for-git-commit-mode)
|
||||
@@ -4,15 +4,3 @@
|
||||
(linum-mode t))
|
||||
|
||||
(add-hook 'magit-mode-hook 'customizations-for-magit-mode)
|
||||
|
||||
;; Write commit messages in style
|
||||
(defun customizations-for-magit-log-edit-mode ()
|
||||
(interactive)
|
||||
(flyspell-mode)
|
||||
(linum-mode t)
|
||||
(auto-fill-mode)
|
||||
(subword-mode)
|
||||
(setq fill-column 72)
|
||||
(fci-mode))
|
||||
|
||||
(add-hook 'magit-log-edit-mode-hook 'customizations-for-magit-log-edit-mode)
|
||||
|
||||
Reference in New Issue
Block a user