From: Stefan Kangas Date: Fri, 10 Dec 2021 02:11:49 +0000 (+0100) Subject: * lisp/time.el (world-clock-mode-map): Convert to defvar-keymap. X-Git-Tag: emacs-29.0.90~3606^2~7 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e796161b6e640b00b8ab584f843f70e59a34c078;p=emacs.git * lisp/time.el (world-clock-mode-map): Convert to defvar-keymap. --- diff --git a/lisp/time.el b/lisp/time.el index 4f302caa674..fcea064b4cf 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.