]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/time.el (world-clock-mode-map): Convert to defvar-keymap.
authorStefan Kangas <stefan@marxist.se>
Fri, 10 Dec 2021 02:11:49 +0000 (03:11 +0100)
committerStefan Kangas <stefan@marxist.se>
Fri, 10 Dec 2021 02:11:49 +0000 (03:11 +0100)
lisp/time.el

index 4f302caa674a6b8d403b32b04b5e41eab80cf745..fcea064b4cfda0adafa7198e958d6a1ab4e1d142 100644 (file)
@@ -526,11 +526,9 @@ If the value is t instead of an alist, use the value of
   '((t :inherit font-lock-variable-name-face))
   "Face for time zone label in `world-clock' buffer.")
 
-(defvar world-clock-mode-map
-  (let ((map (make-sparse-keymap)))
-    (define-key map "n" #'next-line)
-    (define-key map "p" #'previous-line)
-    map))
+(defvar-keymap world-clock-mode-map
+  "n" #'next-line
+  "p" #'previous-line)
 
 (define-derived-mode world-clock-mode special-mode "World clock"
   "Major mode for buffer that displays times in various time zones.