From 654e4eb4631ea4b271a603abf496e88de7500e68 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 11 Dec 2013 11:50:32 +0200 Subject: [PATCH] Add browse-kill-ring package --- core/prelude-editor.el | 3 +++ core/prelude-packages.el | 4 +++- modules/prelude-key-chord.el | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/prelude-editor.el b/core/prelude-editor.el index 463cd5b..ead416f 100644 --- a/core/prelude-editor.el +++ b/core/prelude-editor.el @@ -299,6 +299,9 @@ The body of the advice is in BODY." ;; clean up obsolete buffers automatically (require 'midnight) +;; smarter kill-ring navigation +(global-set-key (kbd "s-y") 'browse-kill-ring) + ;; automatically indenting yanked text if in programming-modes (defvar yank-indent-modes '(LaTeX-mode TeX-mode) diff --git a/core/prelude-packages.el b/core/prelude-packages.el index 9481539..dcf542f 100644 --- a/core/prelude-packages.el +++ b/core/prelude-packages.el @@ -42,7 +42,9 @@ (package-initialize) (defvar prelude-packages - '(ace-jump-mode ack-and-a-half anzu dash diminish elisp-slime-nav + '(ace-jump-mode ack-and-a-half anzu + browse-kill-ring + dash diminish elisp-slime-nav epl expand-region flycheck gist gitconfig-mode gitignore-mode grizzl guru-mode projectile diff --git a/modules/prelude-key-chord.el b/modules/prelude-key-chord.el index 3d06ad0..4268574 100644 --- a/modules/prelude-key-chord.el +++ b/modules/prelude-key-chord.el @@ -41,6 +41,7 @@ (key-chord-define-global "JJ" 'prelude-switch-to-previous-buffer) (key-chord-define-global "uu" 'undo-tree-visualize) (key-chord-define-global "xx" 'execute-extended-command) +(key-chord-define-global "yy" 'browse-kill-ring) (key-chord-mode +1)