diff options
author | William Carroll <wpcarro@gmail.com> | 2020-01-18T22·47+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-01-18T22·47+0000 |
commit | 77d46eb5e1ef27f111012adbe966b82238d38fec (patch) | |
tree | b497e8ce80236500cd282883e8fdf52e3af65b75 /configs/shared/.emacs.d/wpc/screen-brightness.el | |
parent | 068a648736c14a8670097dc4c715bc76dbcfe6e6 (diff) |
Debug failed initialization of keybindings
Some more pains of weening off of Dropbox is that my Emacs initialization is sensitive to dependencies and missing require statements. I'm still debugging everything. Some modules called `exwm-input-set-key` before the `window-manager` module loaded, which itself requires EXWM. This broke initialization. To get around this I could've called `(require 'exwm)` in each of those modules. I chose to define a `keybindings.el` module to whitelist some of my EXWM keybindings. I'm not sure if this is the best way forward, but it is *some* way forward.
Diffstat (limited to 'configs/shared/.emacs.d/wpc/screen-brightness.el')
-rw-r--r-- | configs/shared/.emacs.d/wpc/screen-brightness.el | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/configs/shared/.emacs.d/wpc/screen-brightness.el b/configs/shared/.emacs.d/wpc/screen-brightness.el index 715fc7baee35..ad51e7578cca 100644 --- a/configs/shared/.emacs.d/wpc/screen-brightness.el +++ b/configs/shared/.emacs.d/wpc/screen-brightness.el @@ -21,9 +21,6 @@ (defconst screen-brightness/step-size 15 "The size of the increment or decrement step for the screen's brightness.") -(defcustom screen-brightness/install-kbds? t - "If t, install the keybindings to control screen brightness.") - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Library ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -44,11 +41,5 @@ :command (string/format "xbacklight -dec %s" screen-brightness/step-size)) (message "[screen-brightness.el] Decreased screen brightness.")) -(when screen-brightness/install-kbds? - (exwm-input-set-key - (kbd "<XF86MonBrightnessUp>") #'screen-brightness/increase) - (exwm-input-set-key - (kbd "<XF86MonBrightnessDown>") #'screen-brightness/decrease)) - (provide 'screen-brightness) ;;; screen-brightness.el ends here |