about summary refs log tree commit diff
path: root/configs/shared/.emacs.d/wpc/wallpaper.el
diff options
context:
space:
mode:
Diffstat (limited to 'configs/shared/.emacs.d/wpc/wallpaper.el')
-rw-r--r--configs/shared/.emacs.d/wpc/wallpaper.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/configs/shared/.emacs.d/wpc/wallpaper.el b/configs/shared/.emacs.d/wpc/wallpaper.el
index 08758aef09c7..9aa41cd364a4 100644
--- a/configs/shared/.emacs.d/wpc/wallpaper.el
+++ b/configs/shared/.emacs.d/wpc/wallpaper.el
@@ -14,6 +14,7 @@
 (require 'fs)
 (require 'cycle)
 (require 'string)
+(require 'general)
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Library
@@ -81,9 +82,11 @@
 ;; constants, etc. with the filename like `wallpaper'.
 
 (when wallpaper/keybindings?
-  (evil-leader/set-key
-    "Fw" #'wallpaper/next
-    "Pw" #'wallpaper/prev))
+  (general-define-key
+   :prefix "<SPC>"
+   :states '(normal)
+   "Fw" #'wallpaper/next
+   "Pw" #'wallpaper/prev))
 
 (provide 'wallpaper)
 ;;; wallpaper.el ends here