From b858438d17b3f27752019202809938b2bcd0a486 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 27 Mar 2012 14:55:07 +0100 Subject: [PATCH] Enable highlight-indentation-current-column-mode in most languages --- mode-customizations/coffee-mode.el | 3 ++- mode-customizations/css-mode.el | 1 + mode-customizations/erlang-mode.el | 3 ++- mode-customizations/feature-mode.el | 3 ++- mode-customizations/js-mode.el | 3 ++- mode-customizations/php-mode.el | 4 +++- mode-customizations/python-mode.el | 1 + mode-customizations/ruby-mode.el | 1 + mode-customizations/sh-mode.el | 3 ++- mode-customizations/yaml-mode.el | 1 + 10 files changed, 17 insertions(+), 6 deletions(-) diff --git a/mode-customizations/coffee-mode.el b/mode-customizations/coffee-mode.el index d97ec5c..06998f2 100644 --- a/mode-customizations/coffee-mode.el +++ b/mode-customizations/coffee-mode.el @@ -8,4 +8,5 @@ (fci-mode) (setq tab-width 2) (setq highlight-indentation-offset 2) - (highlight-indentation-mode))) + (highlight-indentation-mode) + (highlight-indentation-current-column-mode))) diff --git a/mode-customizations/css-mode.el b/mode-customizations/css-mode.el index 13cb2d1..94b6faa 100644 --- a/mode-customizations/css-mode.el +++ b/mode-customizations/css-mode.el @@ -6,4 +6,5 @@ (setq css-indent-offset 2) (setq highlight-indentation-offset 2) (highlight-indentation-mode) + (highlight-indentation-current-column-mode) (define-key css-mode-map (kbd "RET") 'newline-and-indent))) diff --git a/mode-customizations/erlang-mode.el b/mode-customizations/erlang-mode.el index 7ce5475..118ca2d 100644 --- a/mode-customizations/erlang-mode.el +++ b/mode-customizations/erlang-mode.el @@ -14,4 +14,5 @@ (linum-mode t) (fci-mode) (setq highlight-indentation-offset 2) - (highlight-indentation-mode))) + (highlight-indentation-mode) + (highlight-indentation-current-column-mode))) diff --git a/mode-customizations/feature-mode.el b/mode-customizations/feature-mode.el index ab6333b..e4a911f 100644 --- a/mode-customizations/feature-mode.el +++ b/mode-customizations/feature-mode.el @@ -7,4 +7,5 @@ (linum-mode t) (fci-mode) (setq highlight-indentation-offset 2) - (highlight-indentation-mode))) + (highlight-indentation-mode) + (highlight-indentation-current-column-mode))) diff --git a/mode-customizations/js-mode.el b/mode-customizations/js-mode.el index 8892bbe..d511885 100644 --- a/mode-customizations/js-mode.el +++ b/mode-customizations/js-mode.el @@ -6,4 +6,5 @@ (fci-mode) (setq tab-width 2) (setq highlight-indentation-offset 2) - (highlight-indentation-mode))) + (highlight-indentation-mode) + (highlight-indentation-current-column-mode))) diff --git a/mode-customizations/php-mode.el b/mode-customizations/php-mode.el index dd44d8f..6e92978 100644 --- a/mode-customizations/php-mode.el +++ b/mode-customizations/php-mode.el @@ -3,4 +3,6 @@ (setq whitespace-action (quote (auto-cleanup))) (flyspell-prog-mode) (linum-mode t) - (fci-mode))) + (fci-mode) + (highlight-indentation-mode) + (highlight-indentation-current-column-mode))) diff --git a/mode-customizations/python-mode.el b/mode-customizations/python-mode.el index 619477c..d68c82e 100644 --- a/mode-customizations/python-mode.el +++ b/mode-customizations/python-mode.el @@ -4,4 +4,5 @@ (linum-mode t) (fci-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 9fead33..940636a 100644 --- a/mode-customizations/ruby-mode.el +++ b/mode-customizations/ruby-mode.el @@ -24,6 +24,7 @@ (add-to-list 'ac-sources 'ac-source-rsense-constant)) (flymake-ruby-load) (highlight-indentation-mode) + (highlight-indentation-current-column-mode) (ruby-electric-mode t) (setq ruby-deep-arglist t) (setq ruby-deep-indent-paren nil) diff --git a/mode-customizations/sh-mode.el b/mode-customizations/sh-mode.el index 9a771c2..c1dadc9 100644 --- a/mode-customizations/sh-mode.el +++ b/mode-customizations/sh-mode.el @@ -3,4 +3,5 @@ (flyspell-prog-mode) (linum-mode t) (fci-mode) - (highlight-indentation-mode))) + (highlight-indentation-mode) + (highlight-indentation-current-column-mode))) diff --git a/mode-customizations/yaml-mode.el b/mode-customizations/yaml-mode.el index 80f4f27..bfffce1 100644 --- a/mode-customizations/yaml-mode.el +++ b/mode-customizations/yaml-mode.el @@ -9,4 +9,5 @@ (fci-mode) (setq highlight-indentation-offset 2) (highlight-indentation-mode) + (highlight-indentation-current-column-mode) (define-key yaml-mode-map (kbd "RET") 'newline-and-indent)))