From c510cb8440fa106e5ab484fe047888f18a3f12dd Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 28 Feb 2012 14:12:47 +0000 Subject: [PATCH] added highlight-indentation mode and configured specific modes for it --- languages/coffee-script.el | 5 ++++- languages/python.el | 2 ++ languages/ruby.el | 2 ++ languages/shell-script.el | 4 +++- languages/yaml.el | 3 +++ packages.el | 1 + 6 files changed, 15 insertions(+), 2 deletions(-) diff --git a/languages/coffee-script.el b/languages/coffee-script.el index 63a04fc..06998f2 100644 --- a/languages/coffee-script.el +++ b/languages/coffee-script.el @@ -6,4 +6,7 @@ (flyspell-prog-mode) (linum-mode t) (fci-mode) - (setq tab-width 2))) + (setq tab-width 2) + (setq highlight-indentation-offset 2) + (highlight-indentation-mode) + (highlight-indentation-current-column-mode))) diff --git a/languages/python.el b/languages/python.el index 9fcb77c..d68c82e 100644 --- a/languages/python.el +++ b/languages/python.el @@ -3,4 +3,6 @@ (flyspell-prog-mode) (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/languages/ruby.el b/languages/ruby.el index 74eae94..ca06478 100644 --- a/languages/ruby.el +++ b/languages/ruby.el @@ -23,6 +23,8 @@ (add-to-list 'ac-sources 'ac-source-rsense-method) (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/languages/shell-script.el b/languages/shell-script.el index 72af954..c1dadc9 100644 --- a/languages/shell-script.el +++ b/languages/shell-script.el @@ -2,4 +2,6 @@ (lambda () (flyspell-prog-mode) (linum-mode t) - (fci-mode))) + (fci-mode) + (highlight-indentation-mode) + (highlight-indentation-current-column-mode))) diff --git a/languages/yaml.el b/languages/yaml.el index 036dc65..bfffce1 100644 --- a/languages/yaml.el +++ b/languages/yaml.el @@ -7,4 +7,7 @@ (flyspell-prog-mode) (linum-mode t) (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))) diff --git a/packages.el b/packages.el index 7f44e04..50225d3 100644 --- a/packages.el +++ b/packages.el @@ -122,6 +122,7 @@ evil full-ack git-blame + highlight-indentation inf-ruby markdown-mode php-mode-improved