From: Stefan Kangas Date: Tue, 10 May 2022 20:59:57 +0000 (+0200) Subject: * lisp/iimage.el (iimage-mode-map): Prefer defvar-keymap. X-Git-Tag: emacs-29.0.90~1910^2~799 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9971a309aab7a8b4055fb0f2ee749da2fae6e3ed;p=emacs.git * lisp/iimage.el (iimage-mode-map): Prefer defvar-keymap. --- 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."