From 8b45e7c6811215a0b70ade840c96e920cdb1569f Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 18 Jun 2022 19:56:09 +0200 Subject: [PATCH] Prefer defvar-keymap in edmacro.el * lisp/edmacro.el (edmacro-mode-map): Prefer defvar-keymap. --- lisp/edmacro.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lisp/edmacro.el b/lisp/edmacro.el index 04adabd06bc..11afb68883d 100644 --- a/lisp/edmacro.el +++ b/lisp/edmacro.el @@ -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) -- 2.39.2