Function: css-base-mode
css-base-mode is an interactive and byte-compiled function defined in
css-mode.el.gz.
Signature
(css-base-mode)
Documentation
Generic mode to edit Cascading Style Sheets (CSS).
This is a generic major mode intended to be inherited by a
concrete implementation. Currently there are two concrete
implementations: css-mode and css-ts-mode.
In addition to any hooks its parent mode prog-mode might have run,
this mode runs the hook css-base-mode-hook, as the final or
penultimate step during initialization.
C-M-q prog-indent-sexp
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/css-mode.el.gz
(define-derived-mode css-base-mode prog-mode "CSS"
"Generic mode to edit Cascading Style Sheets (CSS).
This is a generic major mode intended to be inherited by a
concrete implementation. Currently there are two concrete
implementations: `css-mode' and `css-ts-mode'."
(setq-local comment-start "/*")
(setq-local comment-start-skip "/\\*+[ \t]*")
(setq-local comment-end "*/")
(setq-local comment-end-skip "[ \t]*\\*+/")
(setq-local electric-indent-chars
(append css-electric-keys electric-indent-chars))
;; The default "." creates ambiguity with class selectors.
(setq-local imenu-space-replacement " "))