[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master e796161: * lisp/time.el (world-clock-mode-map): Convert to defvar

From: Stefan Kangas
Subject: master e796161: * lisp/time.el (world-clock-mode-map): Convert to defvar-keymap.
Date: Thu, 9 Dec 2021 21:12:25 -0500 (EST)

branch: master
commit e796161b6e640b00b8ab584f843f70e59a34c078
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    * lisp/time.el (world-clock-mode-map): Convert to defvar-keymap.
 lisp/time.el | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/lisp/time.el b/lisp/time.el
index 4f302ca..fcea064 100644
--- a/lisp/time.el
+++ b/lisp/time.el
@@ -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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]