mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
- Make use of use-package's :bind option whenever possible. - Make use of use-package's :hook option whenever possible. - Rename and move all mode setup functions into use-package's :init step. - Other minor misc fixes and tweaks to a few modules.
28 lines
531 B
EmacsLisp
28 lines
531 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\\'"
|
|
:hook (css-mode-hook . siren-css-mode-setup)
|
|
|
|
:config
|
|
(setq css-indent-offset 2)
|
|
|
|
:init
|
|
(defun siren-css-mode-setup ()
|
|
(siren-prog-mode-setup)
|
|
(rainbow-mode +1)
|
|
(setq tab-width 2)
|
|
(highlight-indentation-current-column-mode)))
|
|
|
|
(provide 'siren-css)
|
|
;;; siren-css.el ends here
|