Commit 464770d2 authored by Simen Heggestøyl's avatar Simen Heggestøyl

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.
parent 68b374a6
Pipeline #1814 failed with stage
in 51 minutes and 25 seconds
......@@ -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"
......@@ -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"]))
"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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment