about summary refs log tree commit diff
path: root/configs/shared
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-20T16·48+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-22T21·13+0000
commit3d6b521919db8229b738cfbde34b45b10c8cacf6 (patch)
treeddc0a22238cd5ac191d89e0a60cbd2d273cf97cb /configs/shared
parent16fd606f9199de7cebcce1f19439c3695906d134 (diff)
Ensure scrot.el initializes
- Adds scrot to init.el
- Moves the EXWM keybindings to keybindings.el
Diffstat (limited to 'configs/shared')
-rw-r--r--configs/shared/.emacs.d/init.el1
-rw-r--r--configs/shared/.emacs.d/wpc/keybindings.el3
-rw-r--r--configs/shared/.emacs.d/wpc/scrot.el2
3 files changed, 4 insertions, 2 deletions
diff --git a/configs/shared/.emacs.d/init.el b/configs/shared/.emacs.d/init.el
index 5e60f0d11487..0d2bec7645a5 100644
--- a/configs/shared/.emacs.d/init.el
+++ b/configs/shared/.emacs.d/init.el
@@ -27,6 +27,7 @@
 (require 'email)
 ;; TODO: Consider renaming entr.el.
 (require 'entr)
+(require 'scrot)
 
 ;; TODO: Reconcile kbd.el, keybindings.el, wpc-keybindings.el, keyboard.el.
 (require 'keybindings)
diff --git a/configs/shared/.emacs.d/wpc/keybindings.el b/configs/shared/.emacs.d/wpc/keybindings.el
index 85a6f8cb8852..22457c3b6d37 100644
--- a/configs/shared/.emacs.d/wpc/keybindings.el
+++ b/configs/shared/.emacs.d/wpc/keybindings.el
@@ -13,6 +13,7 @@
 (require 'clipboard)
 (require 'screen-brightness)
 (require 'chrome)
+(require 'scrot)
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Configuration
@@ -34,5 +35,7 @@
 
 (keybinding/exwm "C-M-c" #'chrome/browse)
 
+(keybinding/exwm (kbd/raw 'x11 "s") #'scrot/select)
+
 (provide 'keybindings)
 ;;; keybindings.el ends here
diff --git a/configs/shared/.emacs.d/wpc/scrot.el b/configs/shared/.emacs.d/wpc/scrot.el
index 3911d262fc92..eeb12b3731e9 100644
--- a/configs/shared/.emacs.d/wpc/scrot.el
+++ b/configs/shared/.emacs.d/wpc/scrot.el
@@ -60,7 +60,5 @@ The output path is copied to the user's clipboard."
     (scrot/call "--select" screenshot-path)
     (scrot/copy-image screenshot-path)))
 
-(exwm-input-set-key (kbd/raw 'x11 "s") #'scrot/select)
-
 (provide 'scrot)
 ;;; scrot.el ends here