about summary refs log tree commit diff
path: root/configs/shared/.emacs.d/wpc/fonts.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-20T12·11+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-22T21·13+0000
commitb4a6551dd5817059b2fff7ca59ce5956f045027d (patch)
treeee83d786cc7656054f46530995de3ffe8faca2c4 /configs/shared/.emacs.d/wpc/fonts.el
parent40742c612a59dfad6f6ab21797e2a279be1f1a78 (diff)
Drop support for evil-leader
Preferring to use the `general` package for defining leader-prefixed keybindings
than `evil-leader`.

This TODO has existed for quite awhile, so I'm pleased to finish it!

During the cleanup, I deleted some keybindings that I no longer used.
Diffstat (limited to 'configs/shared/.emacs.d/wpc/fonts.el')
-rw-r--r--configs/shared/.emacs.d/wpc/fonts.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/configs/shared/.emacs.d/wpc/fonts.el b/configs/shared/.emacs.d/wpc/fonts.el
index cc8b15c10c7e..30459c940a73 100644
--- a/configs/shared/.emacs.d/wpc/fonts.el
+++ b/configs/shared/.emacs.d/wpc/fonts.el
@@ -18,6 +18,7 @@
 (require 'cycle)
 (require 'device)
 (require 'maybe)
+(require 'general)
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Constants
@@ -138,9 +139,11 @@ The size of the font is determined by `fonts/size'."
 
 (when fonts/keybindings?
   (progn
-    (evil-leader/set-key
-      "Ff" #'fonts/next
-      "Pf" #'fonts/prev)
+    (general-define-key
+     :prefix "<SPC>"
+     :states '(normal)
+     "Ff" #'fonts/next
+     "Pf" #'fonts/prev)
     (general-define-key "s-9" #'fonts/ivy-select)
     (general-define-key "s-0" #'fonts/reset-size)
     (general-define-key "s-j" #'fonts/decrease-size)