diff options
author | Stefan Kangas <stefan@marxist.se> | 2022-05-17 17:25:27 +0200 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2022-05-27 10:00:14 +0200 |
commit | 7d74b8f632b1af75b837f5b5259cd1758aab1489 (patch) | |
tree | 2db8b463375349b7d726fe1320e09e52b746fb3c /lisp/progmodes/asm-mode.el | |
parent | 4ed0f6e9658279c25f66072c2ddef96aa6f7a93c (diff) | |
download | emacs-7d74b8f632b1af75b837f5b5259cd1758aab1489.tar.gz emacs-7d74b8f632b1af75b837f5b5259cd1758aab1489.tar.bz2 emacs-7d74b8f632b1af75b837f5b5259cd1758aab1489.zip |
Prefer defvar-keymap in some progmodes
* lisp/progmodes/asm-mode.el (asm-mode-map):
* lisp/progmodes/bug-reference.el (bug-reference-map):
* lisp/progmodes/erts-mode.el (erts-mode-map):
* lisp/progmodes/flymake.el (flymake-mode-map)
(flymake-diagnostics-buffer-mode-map):
* lisp/progmodes/icon.el (icon-mode-map):
* lisp/progmodes/js.el (js-mode-map):
* lisp/progmodes/m4-mode.el (m4-mode-map):
* lisp/progmodes/mixal-mode.el (mixal-mode-map):
* lisp/progmodes/scheme.el (scheme-mode-map): Prefer defvar-keymap.
Diffstat (limited to 'lisp/progmodes/asm-mode.el')
-rw-r--r-- | lisp/progmodes/asm-mode.el | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el index 370fb1b80b4..05c3fc72966 100644 --- a/lisp/progmodes/asm-mode.el +++ b/lisp/progmodes/asm-mode.el @@ -68,13 +68,11 @@ "Abbrev table used while in Asm mode.") (define-abbrev-table 'asm-mode-abbrev-table ()) -(defvar asm-mode-map - (let ((map (make-sparse-keymap))) - ;; Note that the comment character isn't set up until asm-mode is called. - (define-key map ":" 'asm-colon) - (define-key map "\C-c;" 'comment-region) - map) - "Keymap for Asm mode.") +(defvar-keymap asm-mode-map + :doc "Keymap for Asm mode." + ;; Note that the comment character isn't set up until asm-mode is called. + ":" #'asm-colon + "C-c ;" #'comment-region) (easy-menu-define asm-mode-menu asm-mode-map "Menu for Asm mode." |