]> code.delx.au - gnu-emacs-elpa/commitdiff
Give smart-yank's mode map the canonical name
authorMichael Heerdegen <michael_heerdegen@web.de>
Tue, 17 May 2016 19:51:02 +0000 (21:51 +0200)
committerMichael Heerdegen <michael_heerdegen@web.de>
Tue, 17 May 2016 19:58:30 +0000 (21:58 +0200)
Thanks Stefan.

packages/smart-yank/smart-yank.el

index bde6acb80d8c7397f7333d254b6230070747211a..a5289eb24397e69c9a28ac8512379543f2e1337b 100644 (file)
@@ -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)))