diff --git a/configs/shared/.emacs.d/wpc/buffer.el b/configs/shared/.emacs.d/wpc/buffer.el index ef5239eba..d388818e5 100644 --- a/configs/shared/.emacs.d/wpc/buffer.el +++ b/configs/shared/.emacs.d/wpc/buffer.el @@ -164,17 +164,17 @@ This function ignores Emacs-generated buffers, i.e. the ones that look like (prelude/assert (maybe/some? candidate)) (switch-to-buffer candidate))) -;; TODO: Replace `evil-leader/set-key' with `general-def'. (when buffer/install-kbds? (general-define-key :states '(normal) "C-f" #'buffer/cycle-next "C-b" #'buffer/cycle-prev) - (evil-leader/set-key - "b" #'buffer/ivy-source-code - "" #'buffer/show-previous) - (evil-leader/set-key - "k" #'kill-buffer)) + (general-define-key + :prefix "" + :states '(normal) + "b" #'buffer/ivy-source-code + "" #'buffer/show-previous + "k" #'kill-buffer)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Tests