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.
This commit is contained in:
parent
068a648736
commit
77d46eb5e1
4 changed files with 35 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue