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

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

[elpa] externals/smart-yank e4e5cd9 2/9: Give smart-yank's mode map the


From: Stefan Monnier
Subject: [elpa] externals/smart-yank e4e5cd9 2/9: Give smart-yank's mode map the canonical name
Date: Tue, 1 Dec 2020 17:14:18 -0500 (EST)

branch: externals/smart-yank
commit e4e5cd9b70d505039d510a89d1c8d654d089738c
Author: Michael Heerdegen <michael_heerdegen@web.de>
Commit: Michael Heerdegen <michael_heerdegen@web.de>

    Give smart-yank's mode map the canonical name
    
    Thanks Stefan.
---
 smart-yank.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/smart-yank.el b/smart-yank.el
index bde6acb..a5289eb 100644
--- a/smart-yank.el
+++ b/smart-yank.el
@@ -95,7 +95,7 @@ See `smart-yank-yank-pop' for details."
                  (const helm-show-kill-ring)
                  (function :tag "Other Function")))
 
-(defvar smart-yank-map
+(defvar smart-yank-mode-map
   (let ((map (make-sparse-keymap)))
     (define-key map [remap yank-pop] #'smart-yank-yank-pop)
     map)
@@ -180,7 +180,7 @@ Turning on this mode has the following effects:
    element is automatically \"moved to the first position\" of
    the `kill-ring' so that `yank' invoked later will again yank
    this element."
-  :global t :keymap smart-yank-map
+  :global t
   (if smart-yank-mode
       (advice-add 'yank :before #'smart-yank--before-ad)
     (advice-remove 'yank #'smart-yank--before-ad)))



reply via email to

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