From: Stefan Kangas Date: Sun, 3 Jul 2022 20:42:13 +0000 (+0200) Subject: Normalize definition of erc-track-minor-mode-map X-Git-Tag: emacs-29.0.90~1447^2~1223 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5cb8303f6b207eade52ba8faee1ef364617077de;p=emacs.git Normalize definition of erc-track-minor-mode-map * lisp/erc/erc-track.el (erc-track-minor-mode-map): Normalize keymap definition. --- 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).