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.
31 lines
715 B
EmacsLisp
31 lines
715 B
EmacsLisp
;;; siren-css.el --- jimeh's Emacs Siren: css-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for css-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-programming)
|
|
|
|
(eval-after-load 'css-mode
|
|
'(progn
|
|
(siren-require-packages '(rainbow-mode))
|
|
|
|
(setq css-indent-offset 2)
|
|
|
|
(defun siren-css-mode-defaults ()
|
|
(siren-prog-mode-defaults)
|
|
(rainbow-mode +1)
|
|
(setq tab-width 2)
|
|
(highlight-indentation-current-column-mode)
|
|
(run-hooks 'siren-prog-mode-hook))
|
|
|
|
(setq siren-css-mode-hook 'siren-css-mode-defaults)
|
|
|
|
(add-hook 'css-mode-hook (lambda ()
|
|
(run-hooks 'siren-css-mode-hook)))))
|
|
|
|
(provide 'siren-css)
|
|
;;; siren-css.el ends here
|