mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
All siren modules lazy-load if they can, so there's no need to lazy-require a siren module. Also this avoids the annoyance of the first time you use a feature it triggers a package install from melpa. All such things should happen as part of Emacs startup.
29 lines
638 B
EmacsLisp
29 lines
638 B
EmacsLisp
;;; siren-css.el --- jimeh's Emacs Siren: css-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for css-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-programming)
|
|
(require 'siren-rainbow)
|
|
|
|
(use-package css-mode
|
|
:mode "\\.css\\'"
|
|
:config
|
|
(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))
|
|
|
|
(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
|