about summary refs log tree commit diff
path: root/configs
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-18T16·59+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-18T16·59+0000
commit2e4092f67e26ac26b077fbaf3dc5e4d947975ef5 (patch)
tree57d693184d14f5bbee48f19e04f54e93df6b2a92 /configs
parentb00fa4ffe81615b7265282ed17a58776e44d1734 (diff)
Prefer general to evil-leader
One small change in a larger effort to drop support for evil-leader.
Diffstat (limited to 'configs')
-rw-r--r--configs/shared/.emacs.d/wpc/buffer.el12
1 files changed, 6 insertions, 6 deletions
diff --git a/configs/shared/.emacs.d/wpc/buffer.el b/configs/shared/.emacs.d/wpc/buffer.el
index ef5239ebafce..d388818e58a4 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
-    "<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