Files
.emacs.d/modules/siren-haml.el
Jim Myhrberg 671c924716 Remove use of highlight-indentation-mode
It effects performance quite badly in large files with lots of
indentation levels. I still use
highlight-indentation-current-column-mode though as it doesn't have such
a bad impact on performance.
2016-04-04 09:24:03 +01:00

27 lines
617 B
EmacsLisp

;;; siren-haml.el --- jimeh's Emacs Siren: haml-mode configuration.
;;; Commentary:
;; Basic configuration for haml-mode.
;;; Code:
(siren-require-packages '(haml-mode))
(require 'siren-programming)
(add-to-list 'auto-mode-alist '("\\.hamlc\\'" . haml-mode))
(defun siren-haml-mode-defaults ()
(siren-prog-mode-defaults)
(setq tab-width 2)
(highlight-indentation-set-offset 2)
(highlight-indentation-current-column-mode))
(setq siren-haml-mode-hook 'siren-haml-mode-defaults)
(add-hook 'haml-mode-hook (lambda () (run-hooks 'siren-haml-mode-hook)))
(provide 'siren-haml)
;;; siren-haml.el ends here