From 41df9151180808bd5b498380324bab91179d152d Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 7 May 2013 09:05:08 +0100 Subject: [PATCH] Add subword-mode to all relevant modes --- mode-customizations/coffee-mode.el | 1 + mode-customizations/css-mode.el | 1 + mode-customizations/js-mode.el | 1 + mode-customizations/magit-mode.el | 1 + mode-customizations/makefile-mode.el | 1 + mode-customizations/markdown-mode.el | 1 + mode-customizations/php+-mode.el | 1 + mode-customizations/python-mode.el | 1 + mode-customizations/ruby-mode.el | 1 + mode-customizations/sh-mode.el | 1 + mode-customizations/yaml-mode.el | 3 ++- 11 files changed, 12 insertions(+), 1 deletion(-) diff --git a/mode-customizations/coffee-mode.el b/mode-customizations/coffee-mode.el index 0040991..8ebff44 100644 --- a/mode-customizations/coffee-mode.el +++ b/mode-customizations/coffee-mode.el @@ -8,6 +8,7 @@ (linum-mode t) (fci-mode) (auto-complete-mode) + (subword-mode) (setq tab-width 2) (setq highlight-indentation-offset 2) (highlight-indentation-mode) diff --git a/mode-customizations/css-mode.el b/mode-customizations/css-mode.el index b5f5601..cc33f1e 100644 --- a/mode-customizations/css-mode.el +++ b/mode-customizations/css-mode.el @@ -4,6 +4,7 @@ (linum-mode t) (fci-mode) (auto-complete-mode) + (subword-mode) (setq css-indent-offset 2) (setq highlight-indentation-offset 2) (highlight-indentation-mode) diff --git a/mode-customizations/js-mode.el b/mode-customizations/js-mode.el index 03e8b87..fc1c4a3 100644 --- a/mode-customizations/js-mode.el +++ b/mode-customizations/js-mode.el @@ -5,6 +5,7 @@ (linum-mode t) (fci-mode) (auto-complete-mode) + (subword-mode) (setq tab-width 2) (setq highlight-indentation-offset 2) (highlight-indentation-mode)) diff --git a/mode-customizations/magit-mode.el b/mode-customizations/magit-mode.el index 971733f..b68ee8d 100644 --- a/mode-customizations/magit-mode.el +++ b/mode-customizations/magit-mode.el @@ -11,6 +11,7 @@ (flyspell-mode) (linum-mode t) (auto-fill-mode) + (subword-mode) (setq fill-column 72) (fci-mode)) diff --git a/mode-customizations/makefile-mode.el b/mode-customizations/makefile-mode.el index f315f84..b39a28a 100644 --- a/mode-customizations/makefile-mode.el +++ b/mode-customizations/makefile-mode.el @@ -4,6 +4,7 @@ (linum-mode t) (fci-mode) (auto-complete-mode) + (subword-mode) (setq tab-width 4) (highlight-indentation-mode)) diff --git a/mode-customizations/markdown-mode.el b/mode-customizations/markdown-mode.el index 0bd46d6..5efe233 100644 --- a/mode-customizations/markdown-mode.el +++ b/mode-customizations/markdown-mode.el @@ -11,6 +11,7 @@ (linum-mode t) (flyspell-mode) (auto-fill-mode) + (subword-mode) (define-key markdown-mode-map (kbd "C-c p") 'markdown-preview)) (add-hook 'markdown-mode-hook 'customizations-for-markdown-mode) diff --git a/mode-customizations/php+-mode.el b/mode-customizations/php+-mode.el index c63b5b7..7d11063 100644 --- a/mode-customizations/php+-mode.el +++ b/mode-customizations/php+-mode.el @@ -7,6 +7,7 @@ (linum-mode t) (fci-mode) (auto-complete-mode) + (subword-mode) (setq php-basic-offset 2) (setq tab-width 2) (setq highlight-indentation-offset 2) diff --git a/mode-customizations/python-mode.el b/mode-customizations/python-mode.el index b66363a..6a79f02 100644 --- a/mode-customizations/python-mode.el +++ b/mode-customizations/python-mode.el @@ -4,6 +4,7 @@ (linum-mode t) (fci-mode) (auto-complete-mode) + (subword-mode) (highlight-indentation-mode) (highlight-indentation-current-column-mode) (define-key python-mode-map (kbd "RET") 'newline-and-indent)) diff --git a/mode-customizations/ruby-mode.el b/mode-customizations/ruby-mode.el index 4d7370a..dce700a 100644 --- a/mode-customizations/ruby-mode.el +++ b/mode-customizations/ruby-mode.el @@ -44,6 +44,7 @@ (highlight-indentation-current-column-mode) (hs-minor-mode 1) (flymake-ruby-load) + (subword-mode) (setq ruby-deep-arglist t) (setq ruby-deep-indent-paren nil) (setq c-tab-always-indent nil) diff --git a/mode-customizations/sh-mode.el b/mode-customizations/sh-mode.el index b97c6c6..3287c0c 100644 --- a/mode-customizations/sh-mode.el +++ b/mode-customizations/sh-mode.el @@ -6,6 +6,7 @@ (linum-mode t) (fci-mode) (auto-complete-mode) + (subword-mode) (setq sh-basic-offset 2) (setq sh-indentation 2) (setq highlight-indentation-offset 2) diff --git a/mode-customizations/yaml-mode.el b/mode-customizations/yaml-mode.el index cf49c9f..41da857 100644 --- a/mode-customizations/yaml-mode.el +++ b/mode-customizations/yaml-mode.el @@ -8,7 +8,8 @@ (linum-mode t) (fci-mode) (auto-complete-mode) - (setq highlight-indentation-offset 2) + (subword-mode) + (setq highlight-indentation-offset 2) (highlight-indentation-mode) (highlight-indentation-current-column-mode) (define-key yaml-mode-map (kbd "RET") 'newline-and-indent))