From 5cb8303f6b207eade52ba8faee1ef364617077de Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sun, 3 Jul 2022 22:42:13 +0200 Subject: [PATCH] Normalize definition of erc-track-minor-mode-map * lisp/erc/erc-track.el (erc-track-minor-mode-map): Normalize keymap definition. --- lisp/erc/erc-track.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lisp/erc/erc-track.el b/lisp/erc/erc-track.el index e8117f9a89b..59b79bcfd93 100644 --- a/lisp/erc/erc-track.el +++ b/lisp/erc/erc-track.el @@ -453,13 +453,13 @@ START is the minimum length of the name used." ;; Play nice with other IRC clients (and Emacs development rules) by ;; making this a minor mode -(defvar erc-track-minor-mode-map (make-sparse-keymap) +(defvar erc-track-minor-mode-map + (let ((map (make-sparse-keymap))) + (define-key map (kbd "C-c C-@") #'erc-track-switch-buffer) + (define-key map (kbd "C-c C-SPC") #'erc-track-switch-buffer) + map) "Keymap for rcirc track minor mode.") -(define-key erc-track-minor-mode-map (kbd "C-c C-@") #'erc-track-switch-buffer) -(define-key erc-track-minor-mode-map (kbd "C-c C-SPC") - #'erc-track-switch-buffer) - ;;;###autoload (define-minor-mode erc-track-minor-mode "Toggle mode line display of ERC activity (ERC Track minor mode). -- 2.39.2