summaryrefslogtreecommitdiff
path: root/basic.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-03-03 11:07:10 +0800
committerJSDurand <mmemmew@gmail.com>2021-03-03 11:07:10 +0800
commita8e1ec1aa5271c54fbcdd8d52ca5a8d373da1f9c (patch)
tree368709b9a6dea8f79e98bc6b85fae4db43a4adcb /basic.el
parent63a47703e5b45dabf8b02006711313ba633f01b7 (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.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/basic.el b/basic.el
index 84c358c..0715aea 100644
--- a/basic.el
+++ b/basic.el
@@ -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