mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 05:47:36 +00:00
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:
parent
3e8aad77b1
commit
9d5906d9d2
1 changed files with 12 additions and 0 deletions
|
|
@ -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'.")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue