diff options
| author | Simen Heggestøyl | 2019-05-26 21:37:05 +0200 |
|---|---|---|
| committer | Simen Heggestøyl | 2019-05-26 21:53:05 +0200 |
| commit | 9d5906d9d21da4b85a3a9316ebd693daaa5bec38 (patch) | |
| tree | 74c4bd88345c58441070a4fd3c6778c4e7cb9925 | |
| parent | 3e8aad77b10767c76ffdc56875e470b551e3fa56 (diff) | |
| download | emacs-9d5906d9d21da4b85a3a9316ebd693daaa5bec38.tar.gz emacs-9d5906d9d21da4b85a3a9316ebd693daaa5bec38.zip | |
Add a menu bar menu for CSS mode
* lisp/textmodes/css-mode.el (css-mode-map): Add menu bar menu.
| -rw-r--r-- | lisp/textmodes/css-mode.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 11a77b5bb78..ae7b8eacd17 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el | |||
| @@ -845,6 +845,18 @@ cannot be completed sensibly: `custom-ident', | |||
| 845 | (let ((map (make-sparse-keymap))) | 845 | (let ((map (make-sparse-keymap))) |
| 846 | (define-key map [remap info-lookup-symbol] 'css-lookup-symbol) | 846 | (define-key map [remap info-lookup-symbol] 'css-lookup-symbol) |
| 847 | (define-key map "\C-c\C-f" 'css-cycle-color-format) | 847 | (define-key map "\C-c\C-f" 'css-cycle-color-format) |
| 848 | (easy-menu-define css-menu map "CSS mode menu" | ||
| 849 | '("CSS" | ||
| 850 | :help "CSS-specific features" | ||
| 851 | ["Reformat block" fill-paragraph | ||
| 852 | :help "Reformat declaration block or fill comment at point"] | ||
| 853 | ["Cycle color format" css-cycle-color-format | ||
| 854 | :help "Cycle color at point between different formats"] | ||
| 855 | "-" | ||
| 856 | ["Describe symbol" css-lookup-symbol | ||
| 857 | :help "Display documentation for a CSS symbol"] | ||
| 858 | ["Complete symbol" complete-symbol | ||
| 859 | :help "Complete symbol before point"])) | ||
| 848 | map) | 860 | map) |
| 849 | "Keymap used in `css-mode'.") | 861 | "Keymap used in `css-mode'.") |
| 850 | 862 | ||