Add exwm prefix keys

This commit is contained in:
g1n 2021-05-03 14:14:55 +03:00
parent 23e8e5d059
commit 00923d6bde
1 changed files with 17 additions and 0 deletions

17
init.el
View File

@ -82,6 +82,22 @@
(require 'exwm)
(require 'exwm-config)
(require 'exwm-systemtray)
;; These keys should always pass through to Emacs
(setq exwm-input-prefix-keys
'(?\C-x
?\C-u
?\C-h
?\M-x
?\M-`
?\M-&
?\M-:
?\C-\M-j ;; Buffer list
?\C-\ )) ;; Ctrl+Space
;; Ctrl+Q will enable the next key to be sent directly
(define-key exwm-mode-map [?\C-q] 'exwm-input-send-next-key)
;; key bindings
(setq exwm-input-global-keys
`(
@ -110,6 +126,7 @@
(interactive)
(exwm-workspace-switch-create ,i))))
(number-sequence 0 9))))
(exwm-enable)
(exwm-systemtray-enable)