mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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.
27 lines
617 B
EmacsLisp
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
|