From be0a7930d0799c2062d70a1094be7bc1c57137a6 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 4 Jun 2012 14:50:17 +0100 Subject: [PATCH] Add customizations for haml-mode, rhtml-mode, and slim-mode --- mode-customizations.el | 3 +++ mode-customizations/haml-mode.el | 11 +++++++++++ mode-customizations/rhtml-mode.el | 12 ++++++++++++ mode-customizations/slim-mode.el | 11 +++++++++++ 4 files changed, 37 insertions(+) create mode 100644 mode-customizations/haml-mode.el create mode 100644 mode-customizations/rhtml-mode.el create mode 100644 mode-customizations/slim-mode.el diff --git a/mode-customizations.el b/mode-customizations.el index 689ca77..c1e5909 100644 --- a/mode-customizations.el +++ b/mode-customizations.el @@ -9,14 +9,17 @@ (load-file (config-path "mode-customizations/emacs-lisp-mode.el")) (load-file (config-path "mode-customizations/erlang-mode.el")) (load-file (config-path "mode-customizations/feature-mode.el")) +(load-file (config-path "mode-customizations/haml-mode.el")) (load-file (config-path "mode-customizations/html-mode.el")) (load-file (config-path "mode-customizations/js-mode.el")) (load-file (config-path "mode-customizations/makefile-mode.el")) (load-file (config-path "mode-customizations/markdown-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/rhtml-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/slim-mode.el")) (load-file (config-path "mode-customizations/yaml-mode.el")) ;; Misc modes diff --git a/mode-customizations/haml-mode.el b/mode-customizations/haml-mode.el new file mode 100644 index 0000000..b8a86bf --- /dev/null +++ b/mode-customizations/haml-mode.el @@ -0,0 +1,11 @@ +(defun customizations-for-haml-mode () + (interactive) + (flyspell-prog-mode) + (linum-mode t) + (fci-mode) + (setq tab-width 2) + (setq highlight-indentation-offset 2) + (highlight-indentation-mode) + (highlight-indentation-current-column-mode)) + +(add-hook 'haml-mode-hook 'customizations-for-haml-mode) diff --git a/mode-customizations/rhtml-mode.el b/mode-customizations/rhtml-mode.el new file mode 100644 index 0000000..cb53999 --- /dev/null +++ b/mode-customizations/rhtml-mode.el @@ -0,0 +1,12 @@ +(add-to-list 'auto-mode-alist '("\\.erb$" . rhtml-mode)) + +(defun customizations-for-rhtml-mode () + (interactive) + (flyspell-prog-mode) + (linum-mode t) + (fci-mode) + (setq tab-width 2) + (setq highlight-indentation-offset 2) + (highlight-indentation-mode)) + +(add-hook 'rhtml-mode-hook 'customizations-for-rhtml-mode) diff --git a/mode-customizations/slim-mode.el b/mode-customizations/slim-mode.el new file mode 100644 index 0000000..0aecf3a --- /dev/null +++ b/mode-customizations/slim-mode.el @@ -0,0 +1,11 @@ +(defun customizations-for-slim-mode () + (interactive) + (flyspell-prog-mode) + (linum-mode t) + (fci-mode) + (setq tab-width 2) + (setq highlight-indentation-offset 2) + (highlight-indentation-mode) + (highlight-indentation-current-column-mode)) + +(add-hook 'slim-mode-hook 'customizations-for-slim-mode)