mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
- Switch from highlight-indentation package to highlight-indent-guides. - Activate visual indentation in a prog-mode hook, rather than doing within each individual major mode. It was already done within all major modes based on prog-mode anyway. - Add new siren-display-indetation module and function as a central way to enable visual indetation guides. This makes switching the underlying package at some point in the future much easier.
30 lines
452 B
EmacsLisp
30 lines
452 B
EmacsLisp
;;; siren-css.el --- jimeh's Emacs Siren: css-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for css-mode.
|
|
|
|
;;; Code:
|
|
|
|
(require 'siren-rainbow)
|
|
|
|
(use-package css-mode
|
|
:mode "\\.css\\'"
|
|
|
|
:hook
|
|
(css-mode . siren-css-mode-setup)
|
|
|
|
:custom
|
|
(css-indent-offset 2)
|
|
|
|
:init
|
|
(defun siren-css-mode-setup ()
|
|
(setq tab-width 2)
|
|
|
|
(company-mode +1)
|
|
(lsp)
|
|
(rainbow-mode +1)))
|
|
|
|
(provide 'siren-css)
|
|
;;; siren-css.el ends here
|