From 4004dde6ea92d9139b67e59c072a9ce52f4ed15c Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Tue, 18 May 2021 15:44:34 +0200 Subject: [PATCH] Avoid positional arguments to define-minor-mode Back in Emacs-21.1, `define-minor-mode' grew keyword arguments to replace its old positional arguments. Starting with Emacs-28.1 a warning will be omitted if positional arguments are still used. --- lisp/use-package/bind-key.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/use-package/bind-key.el b/lisp/use-package/bind-key.el index 1d611c2933c..9a2ddcd8437 100644 --- a/lisp/use-package/bind-key.el +++ b/lisp/use-package/bind-key.el @@ -131,7 +131,8 @@ (define-minor-mode override-global-mode "A minor mode so that keymap settings override other modes." - t "") + :global t + :lighter "") ;; the keymaps in `emulation-mode-map-alists' take precedence over ;; `minor-mode-map-alist' -- 2.39.2