diff options
author | JSDurand <mmemmew@gmail.com> | 2021-03-03 11:07:10 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2021-03-03 11:07:10 +0800 |
commit | a8e1ec1aa5271c54fbcdd8d52ca5a8d373da1f9c (patch) | |
tree | 368709b9a6dea8f79e98bc6b85fae4db43a4adcb /basic.el | |
parent | 63a47703e5b45dabf8b02006711313ba633f01b7 (diff) |
Completion for yank
* basic.el (global-map): Bind it.
* common.el (yank-complete-rotated-kill-ring): Rotating the kill ring
so that the last kill is at the top.
(yank-complete-history): History variable.
(yank-complete): Use `completing-read' for choosing some text that was
killed before.
Diffstat (limited to 'basic.el')
-rw-r--r-- | basic.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -202,6 +202,11 @@ window, then also delete the selected window." (define-key global-map (vector (logior (ash 1 27) #x5a)) #'zap-up-to-char) +;;; Completion enhanced yank + +(define-key global-map (vector ?\M-y) #'yank-pop) +(define-key global-map (vector ?\C-\M-y) #'yank-complete) + ;;; Repeating pops ;;;###autoload |