emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/leaf 9797d3258d 27/28: Get rid the warning in define mi


From: ELPA Syncer
Subject: [elpa] externals/leaf 9797d3258d 27/28: Get rid the warning in define minor mode.
Date: Wed, 19 Jan 2022 18:58:44 -0500 (EST)

branch: externals/leaf
commit 9797d3258d3d6fd5c02cdb9ff18275a8c64786fd
Author: lorniu/sz <lorniu@gmail.com>
Commit: lorniu/sz <lorniu@gmail.com>

    Get rid the warning in define minor mode.
    
    The warning is `Use keywords rather than deprecated positional arguments to 
define-minor-mode`
    when startup.
---
 leaf.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/leaf.el b/leaf.el
index a093970aa0..101a8790e2 100644
--- a/leaf.el
+++ b/leaf.el
@@ -832,7 +832,8 @@ If NO-DUP is non-nil, do not `push' if the element already 
exists."
 
 (define-minor-mode leaf-key-override-global-mode
   "A minor mode so that keymap settings override other modes."
-  t "")
+  :init-value t
+  :lighter "")
 
 ;; the keymaps in `emulation-mode-map-alists' take precedence over
 ;; `minor-mode-map-alist'



reply via email to

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