From a5cb2b9c45ff1aa8616abc93bd837106d3e72694 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 12 Dec 2019 15:20:22 -0500 Subject: [PATCH] Add "kill buffer" action to counsel-ibuffer --- emacs/init.org | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index c2f7d4f..9459969 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -2927,6 +2927,13 @@ An alternative minibuffer completion framework: ("C-c p" #'counsel-yank-pop) ("C-s" #'swiper-isearch)) + (defun counsel-ibuffer-kill-buffer (x) + (kill-buffer (cdr x))) + + (ivy-set-actions + 'counsel-ibuffer + '(("k" counsel-ibuffer-kill-buffer "kill buffer"))) + (use-package ivy-hydra :after counsel)