Remap `complete-symbol' in CSS mode

* lisp/textmodes/css-mode.el (css-mode-map): Remap `complete-symbol'
to `completion-at-point'.
(css-mode): Update docstring to produce the right key binding.
This commit is contained in:
Simen Heggestøyl 2019-05-27 21:12:53 +02:00
parent 68b374a62d
commit 464770d2e9

View file

@ -844,6 +844,8 @@ cannot be completed sensibly: `custom-ident',
(defvar css-mode-map
(let ((map (make-sparse-keymap)))
(define-key map [remap info-lookup-symbol] 'css-lookup-symbol)
;; `info-complete-symbol' is not used.
(define-key map [remap complete-symbol] 'completion-at-point)
(define-key map "\C-c\C-f" 'css-cycle-color-format)
(easy-menu-define css-menu map "CSS mode menu"
'("CSS"
@ -855,7 +857,7 @@ cannot be completed sensibly: `custom-ident',
"-"
["Describe symbol" css-lookup-symbol
:help "Display documentation for a CSS symbol"]
["Complete symbol" complete-symbol
["Complete symbol" completion-at-point
:help "Complete symbol before point"]))
map)
"Keymap used in `css-mode'.")
@ -1619,7 +1621,7 @@ rgb()/rgba()."
This mode provides syntax highlighting, indentation, completion,
and documentation lookup for CSS.
Use `\\[complete-symbol]' to complete CSS properties, property values,
Use `\\[completion-at-point]' 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