feat(editor): Replace browse-kill-ring with helm-show-kill-ring

This commit is contained in:
2020-05-10 20:35:20 +01:00
parent c69dec37bc
commit cdacf31ca0
3 changed files with 16 additions and 15 deletions

View File

@@ -26,7 +26,6 @@
;; Editor
(require 'siren-amx)
(require 'siren-highlight-symbol)
(require 'siren-browse-kill-ring)
(require 'siren-display-fill-column)
(require 'siren-display-indentation)
(require 'siren-display-line-numbers)

View File

@@ -1,14 +0,0 @@
;;; siren-browse-kill-ring.el --- jimeh's Emacs Siren: browse-kill-ring configuration.
;;; Commentary:
;; Basic configuration for browse-kill-ring.
;;; Code:
(use-package browse-kill-ring
:config
(browse-kill-ring-default-keybindings))
(provide 'siren-browse-kill-ring)
;;; siren-browse-kill-ring.el ends here

View File

@@ -148,6 +148,22 @@
:bind
("C-t" . helm-imenu))
(use-package helm-ring
:straight (helm)
:after (helm-config)
:defer t
:init
;; This advice is borrowed from the browse-kill-ring package.
(defadvice yank-pop (around kill-ring-browse-maybe (arg))
"If last action was not a yank, run `helm-show-kill-ring' instead."
(interactive "p")
(if (not (eq last-command 'yank))
(helm-show-kill-ring)
(barf-if-buffer-read-only)
ad-do-it))
(ad-activate 'yank-pop))
(use-package helm-descbinds
:defer t)