Prefer general to evil-leader

One small change in a larger effort to drop support for evil-leader.
This commit is contained in:
William Carroll 2020-01-18 16:59:46 +00:00
parent b00fa4ffe8
commit 2e4092f67e

View file

@ -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
"<SPC>" #'buffer/show-previous)
(evil-leader/set-key
"k" #'kill-buffer))
(general-define-key
:prefix "<SPC>"
:states '(normal)
"b" #'buffer/ivy-source-code
"<SPC>" #'buffer/show-previous
"k" #'kill-buffer))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Tests