]> git.eshelyaron.com Git - emacs.git/commitdiff
Prefer defvar-keymap in edmacro.el
authorStefan Kangas <stefan@marxist.se>
Sat, 18 Jun 2022 17:56:09 +0000 (19:56 +0200)
committerStefan Kangas <stefan@marxist.se>
Sat, 18 Jun 2022 17:56:09 +0000 (19:56 +0200)
* lisp/edmacro.el (edmacro-mode-map): Prefer defvar-keymap.

lisp/edmacro.el

index 04adabd06bc52d151150c49a50e570920bc00a03..11afb68883d22b1491df485ad919ccb14c32527c 100644 (file)
@@ -72,11 +72,9 @@ Default nil means to write characters above \\177 in octal notation."
   :type 'boolean
   :group 'kmacro)
 
-(defvar edmacro-mode-map
-  (let ((map (make-sparse-keymap)))
-    (define-key map "\C-c\C-c" #'edmacro-finish-edit)
-    (define-key map "\C-c\C-q" #'edmacro-insert-key)
-    map))
+(defvar-keymap edmacro-mode-map
+  "C-c C-c" #'edmacro-finish-edit
+  "C-c C-q" #'edmacro-insert-key)
 
 (defvar edmacro-store-hook)
 (defvar edmacro-finish-hook)