From 943306c2f9fd38552a5650efc6779ddaf3182a60 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Wed, 21 Mar 2012 10:23:41 +0000 Subject: [PATCH] Add additional customizations to magit modes. --- mode-customizations.el | 5 ++++- .../{magit-log-edit-mode.el => magit-mode.el} | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) rename mode-customizations/{magit-log-edit-mode.el => magit-mode.el} (55%) diff --git a/mode-customizations.el b/mode-customizations.el index b899caf..2a0e045 100644 --- a/mode-customizations.el +++ b/mode-customizations.el @@ -2,6 +2,7 @@ ;; Load Mode Customizations ;; +;; Programming languages (load-file (config-path "mode-customizations/coffee-mode.el")) (load-file (config-path "mode-customizations/css-mode.el")) (load-file (config-path "mode-customizations/emacs-lisp-mode.el")) @@ -9,9 +10,11 @@ (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")) (load-file (config-path "mode-customizations/sh-mode.el")) (load-file (config-path "mode-customizations/yaml-mode.el")) + +;; Misc modes +(load-file (config-path "mode-customizations/magit-mode.el")) diff --git a/mode-customizations/magit-log-edit-mode.el b/mode-customizations/magit-mode.el similarity index 55% rename from mode-customizations/magit-log-edit-mode.el rename to mode-customizations/magit-mode.el index 25fa8c9..b6ede1e 100644 --- a/mode-customizations/magit-log-edit-mode.el +++ b/mode-customizations/magit-mode.el @@ -1,3 +1,9 @@ +;; Make Magit it look a bit prettier with my theme +(add-hook 'magit-mode-hook + (lambda () + (linum-mode t))) + +;; Write commit messages in style (add-hook 'magit-log-edit-mode-hook (lambda () (flyspell-mode)