]> git.eshelyaron.com Git - emacs.git/commitdiff
Convert etc-authors-mode-map to defvar-keymap
authorStefan Kangas <stefan@marxist.se>
Wed, 8 Dec 2021 00:55:50 +0000 (01:55 +0100)
committerStefan Kangas <stefan@marxist.se>
Wed, 8 Dec 2021 00:57:45 +0000 (01:57 +0100)
* lisp/textmodes/etc-authors-mode.el (etc-authors-mode-map):
Convert to defvar-keymap.

lisp/textmodes/etc-authors-mode.el

index 8b5fefd3b7d05d97596e5c8c2ba782fe9622b6fe..a79a1ecf4bbd37013384b89d94535e76375c3efd 100644 (file)
@@ -115,12 +115,10 @@ With a prefix arg ARG, move point that many authors backward."
   (interactive "p" etc-authors-mode)
   (etc-authors-next-author (- arg)))
 
-(defvar etc-authors-mode-map
-  (let ((map (make-sparse-keymap)))
-    (define-key map "n" #'etc-authors-next-author)
-    (define-key map "p" #'etc-authors-prev-author)
-    map)
-  "Keymap for `etc-authors-mode'.")
+(defvar-keymap etc-authors-mode-map
+  :doc "Keymap for `etc-authors-mode'."
+  "n" #'etc-authors-next-author
+  "p" #'etc-authors-prev-author)
 
 ;;;###autoload
 (define-derived-mode etc-authors-mode special-mode "Authors View"