From 804186fff9673c783f2354ceed536c4d301025fc Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Mon, 21 May 2012 00:24:07 +0100 Subject: [PATCH] Customize html-mode with linum, highlight-indentation and more... --- mode-customizations.el | 1 + mode-customizations/html-mode.el | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 mode-customizations/html-mode.el diff --git a/mode-customizations.el b/mode-customizations.el index f472be3..689ca77 100644 --- a/mode-customizations.el +++ b/mode-customizations.el @@ -9,6 +9,7 @@ (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/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")) diff --git a/mode-customizations/html-mode.el b/mode-customizations/html-mode.el new file mode 100644 index 0000000..1323113 --- /dev/null +++ b/mode-customizations/html-mode.el @@ -0,0 +1,13 @@ +;; (add-to-list 'auto-mode-alist '("\\.coffee$" . coffee-mode)) +;; (add-to-list 'auto-mode-alist '("Cakefile" . coffee-mode)) + +(defun customizations-for-html-mode () + (interactive) + (flyspell-prog-mode) + (linum-mode t) + (fci-mode) + (setq tab-width 2) + (setq highlight-indentation-offset 2) + (highlight-indentation-mode)) + +(add-hook 'html-mode-hook 'customizations-for-html-mode)