Add a menu bar menu for CSS mode

* lisp/textmodes/css-mode.el (css-mode-map): Add menu bar menu.
This commit is contained in:
Simen Heggestøyl 2019-05-26 21:37:05 +02:00
parent 3e8aad77b1
commit 9d5906d9d2

View file

@ -845,6 +845,18 @@ cannot be completed sensibly: `custom-ident',
(let ((map (make-sparse-keymap)))
(define-key map [remap info-lookup-symbol] 'css-lookup-symbol)
(define-key map "\C-c\C-f" 'css-cycle-color-format)
(easy-menu-define css-menu map "CSS mode menu"
'("CSS"
:help "CSS-specific features"
["Reformat block" fill-paragraph
:help "Reformat declaration block or fill comment at point"]
["Cycle color format" css-cycle-color-format
:help "Cycle color at point between different formats"]
"-"
["Describe symbol" css-lookup-symbol
:help "Display documentation for a CSS symbol"]
["Complete symbol" complete-symbol
:help "Complete symbol before point"]))
map)
"Keymap used in `css-mode'.")