From 8deef1d6a7bf620abf4219b6471883381b817724 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Simen=20Heggest=C3=B8yl?= Date: Thu, 18 May 2017 17:59:56 +0200 Subject: [PATCH] Expand docstring for CSS mode * lisp/textmodes/css-mode.el (css-completion-at-point, css-mode): Expand docstrings. --- lisp/textmodes/css-mode.el | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 165e5deb63f..458ed9f8bb2 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -1350,7 +1350,8 @@ a list of completions." (defun css-completion-at-point () "Complete current symbol at point. Currently supports completion of CSS properties, property values, -pseudo-elements, pseudo-classes, at-rules, and bang-rules." +pseudo-elements, pseudo-classes, at-rules, bang-rules, and HTML +tags, classes and IDs." (or (css--complete-bang-rule) (css--complete-property-value) (css--complete-pseudo-element-or-class) @@ -1377,7 +1378,22 @@ pseudo-elements, pseudo-classes, at-rules, and bang-rules." ;;;###autoload (define-derived-mode css-mode prog-mode "CSS" - "Major mode to edit Cascading Style Sheets." + "Major mode to edit Cascading Style Sheets (CSS). +\\ +This mode provides syntax highlighting, indentation, completion, +and documentation lookup for CSS. + +Use `\\[complete-symbol]' to complete CSS properties, property values, +pseudo-elements, pseudo-classes, at-rules, bang-rules, and HTML +tags, classes and IDs. Completion candidates for HTML class +names and IDs are found by looking through open HTML mode +buffers. + +Use `\\[info-lookup-symbol]' to look up documentation of CSS properties, at-rules, +pseudo-classes, and pseudo-elements on the Mozilla Developer +Network (MDN). + +\\{css-mode-map}" (setq-local font-lock-defaults css-font-lock-defaults) (setq-local comment-start "/*") (setq-local comment-start-skip "/\\*+[ \t]*") -- 2.39.2