From a35f6fa3014dc07992d1602fe1f52af321c825a1 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 13 Aug 2012 02:32:03 +0100 Subject: [PATCH] Add SASS mode customizations --- mode-customizations.el | 1 + mode-customizations/sass-mode.el | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 mode-customizations/sass-mode.el diff --git a/mode-customizations.el b/mode-customizations.el index c96bcbd..6ab3800 100644 --- a/mode-customizations.el +++ b/mode-customizations.el @@ -19,6 +19,7 @@ (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/sass-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")) diff --git a/mode-customizations/sass-mode.el b/mode-customizations/sass-mode.el new file mode 100644 index 0000000..2c8eb35 --- /dev/null +++ b/mode-customizations/sass-mode.el @@ -0,0 +1,13 @@ +(defun customizations-for-sass-mode () + (interactive) + (flyspell-prog-mode) + (flymake-sass-load) + (linum-mode t) + (fci-mode) + (auto-complete-mode) + (setq tab-width 2) + (setq highlight-indentation-offset 2) + (highlight-indentation-mode) + (highlight-indentation-current-column-mode)) + +(add-hook 'sass-mode-hook 'customizations-for-sass-mode)