From 9971a309aab7a8b4055fb0f2ee749da2fae6e3ed Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Tue, 10 May 2022 22:59:57 +0200 Subject: [PATCH] * lisp/iimage.el (iimage-mode-map): Prefer defvar-keymap. --- lisp/iimage.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lisp/iimage.el b/lisp/iimage.el index 2fe50d3e3f1..8a765d5e5d5 100644 --- a/lisp/iimage.el +++ b/lisp/iimage.el @@ -76,11 +76,9 @@ Examples of image filename patterns to match: foo.JPG" :type '(alist :key-type regexp :value-type integer)) -(defvar iimage-mode-map - (let ((map (make-sparse-keymap))) - (define-key map "\C-l" #'iimage-recenter) - map) - "Keymap used in `iimage-mode'.") +(defvar-keymap iimage-mode-map + :doc "Keymap used in `iimage-mode'." + "C-l" #'iimage-recenter) (defun iimage-recenter (&optional arg) "Re-draw images and recenter." -- 2.39.2