From: Stefan Kangas Date: Fri, 4 Nov 2022 19:26:01 +0000 (+0100) Subject: * lisp/textmodes/css-mode.el (css-mode-map): Prefer defvar-keymap. X-Git-Tag: emacs-29.0.90~1616^2~301 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=44ad42240069d8d82772b0c0ef5ec93c2566ca7e;p=emacs.git * lisp/textmodes/css-mode.el (css-mode-map): Prefer defvar-keymap. --- diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index d2a35bd550f..55dced96b78 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -875,26 +875,24 @@ cannot be completed sensibly: `custom-ident', (modify-syntax-entry ?? "." st) st)) -(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" - :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" completion-at-point - :help "Complete symbol before point"])) - map) - "Keymap used in `css-mode'.") +(defvar-keymap css-mode-map + :doc "Keymap used in `css-mode'." + " " #'css-lookup-symbol + ;; `info-complete-symbol' is not used. + " " #'completion-at-point + "C-c C-f" #'css-cycle-color-format + :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" completion-at-point + :help "Complete symbol before point"])) (eval-and-compile (defconst css--uri-re