summaryrefslogtreecommitdiffstats
path: root/emacs.d/20-git-commit.el
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-04-17 02:35:36 +0200
committerGravatar Tom Willemsen2011-04-17 02:35:36 +0200
commit993da8846a8f67e61472760a1841a91072f37b9f (patch)
treef1438d403039fe4b41b36535bfd1c2fd2242bdb6 /emacs.d/20-git-commit.el
parente9b772c8c11467e5d85e6f85d618992787c5ca2c (diff)
downloaddotfiles-993da8846a8f67e61472760a1841a91072f37b9f.tar.gz
dotfiles-993da8846a8f67e61472760a1841a91072f37b9f.zip
Add git-commit-mode
Makes emacs look more like vim when commiting messages. Shows me what I'm doing wrong or right.
Diffstat (limited to 'emacs.d/20-git-commit.el')
-rw-r--r--emacs.d/20-git-commit.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs.d/20-git-commit.el b/emacs.d/20-git-commit.el
new file mode 100644
index 0000000..4568af0
--- /dev/null
+++ b/emacs.d/20-git-commit.el
@@ -0,0 +1,6 @@
+(add-to-list 'load-path "~/.emacs.d/elisp/git-commit-mode")
+(require 'git-commit)
+
+(add-hook 'git-commit-mode-hook
+ (lambda ()
+ (auto-fill-mode)))