Are you tired of using the endless keystrokes of C-y M-y M-y M-y ... to get
at that bit of text you killed thirty-seven kills ago? Ever wish you could just
look through everything you've killed recently to find out if you killed that
piece of text that you think you killed, but you're not quite sure? If so, then
browse-kill-ring is the Emacs extension for you.
browse-kill-ring.el somewhere in your
~/.emacs.d/vendor is a popular choice:
(add-to-list 'load-path "~/emacs.d/vendor") (require 'browse-kill-ring)
If you're an Emacs 24 user or you have a recent version of package.el you can install browse-kill-ring from the Marmalade repository.
If you're an Emacs 24 user or you have a recent version of package.el you can install browse-kill-ring from the MELPA repository.
If you prefer el-get, you can install browse-kill-ring with M-x el-get-install.
browse-kill-ring is naturally part of the
Emacs Prelude. If you're a Prelude
browse-kill-ring is already properly configured and ready for
Optionally, you can map M-y to
browse-kill-ring by adding the form
(browse-kill-ring-default-keybindings) to your
Alternatively you can map
browse-kill-ring to another key combination,
(global-set-key "\C-cy" 'browse-kill-ring).
browse-kill-ring package can be customized through the usual emacs customization interface using
M-x customize-group <RET> browse-kill-ring <RET>. The following list contains some of the interesting configuration variables:
twill cause the item in the
*Kill Ring*that will be inserted, to be highlighted.
browse-kill-ring-highlight-inserted-itemto non-nil will cause the item that has just been inserted to be highlighted. Possible values to which this variable can be set are
t. The value
nilturns highlighting off, the value
cedet(which is a part of recent emacs versions) to highlight the inserted item then fade the highlighting out over a short period of time. The value
solidhighlights the inserted item in a fixed face for a short period of time. The value
twill use the default style for highlighting the inserted item, this is currently
browse-kill-ring-separatoris the string that is placed between items in the
*Kill Ring*buffer between entries.
browse-kill-ring-separator-facecontains the face used for the separator in the
twill cause a preview of the item under point in the
*Kill Ring*buffer to be displayed in the original buffer where the item would be inserted.
Check out the project's issue list a list of unresolved issues. By the way - feel free to fix any of them and send a pull request. :-)
Originally written by Colin Walters (Debian Developer, Emacs hacker, SELinux hacker, and general Free Software Guru Extrordinaire). After that maintained by Nick Hurley. Unfortunately he had to abandon Emacs and this organisation account was created at Github. Feel free to issue pull requests.
Here's a list of all the people who have contributed to the development of browse-kill-ring.
Bugs & Improvements
Bug reports and suggestions for improvements are always welcome. GitHub pull requests are even better! :-)