diff options
| author | Glenn Morris <rgm@gnu.org> | 2007-09-15 20:45:41 +0000 |
|---|---|---|
| committer | Glenn Morris <rgm@gnu.org> | 2007-09-15 20:45:41 +0000 |
| commit | 96736d92c6b22cbdaa1192e48f6968a045b319ce (patch) | |
| tree | 8de25b7a4d68fe923031b066b19c5d16607cadbb /lisp/textmodes/css-mode.el | |
| parent | 3c8e09dc2a51b570fac3b1b454572ccaee890e25 (diff) | |
| download | emacs-96736d92c6b22cbdaa1192e48f6968a045b319ce.tar.gz | |
(css): New custom group.
(css-electrick-keys, css-selector, css-property)
(css-indent-offset): Specify custom group.
Diffstat (limited to 'lisp/textmodes/css-mode.el')
| -rw-r--r-- | lisp/textmodes/css-mode.el | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index b00fc356cce..e90fa615039 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -33,6 +33,10 @@ ;;; Code: +(defgroup css nil + "Cascading Style Sheets (CSS) editing mode." + :group 'languages) + (defun css-extract-keyword-list (res) (with-temp-buffer (url-insert-file-contents "http://www.w3.org/TR/REC-CSS2/css2.txt") @@ -172,7 +176,8 @@ (defcustom css-electrick-keys '(?\} ?\;) ;; '() "Self inserting keys which should trigger re-indentation." :type '(repeat character) - :options '((?\} ?\;))) + :options '((?\} ?\;)) + :group 'css) (defvar css-mode-syntax-table (let ((st (make-syntax-table))) @@ -207,9 +212,11 @@ (defconst css-name-re (concat css-nmchar-re "+")) (defface css-selector '((t :inherit font-lock-function-name-face)) - "Face to use for selectors.") + "Face to use for selectors." + :group 'css) (defface css-property '((t :inherit font-lock-variable-name-face)) - "Face to use for properties.") + "Face to use for properties." + :group 'css) (defvar css-font-lock-keywords `(("!\\s-*important" . font-lock-builtin-face) @@ -390,7 +397,8 @@ (defcustom css-indent-offset 4 "Basic size of one indentation step." - :type 'integer) + :type 'integer + :group 'css) (defun css-indent-calculate () (let ((ppss (syntax-ppss)) |
