This way, keys exist in terminal mode

This commit is contained in:
Benson Chu 2019-12-31 10:39:26 -06:00
parent e1dcbbdba7
commit 5ea41fc5b7
2 changed files with 8 additions and 6 deletions

View file

@ -36,16 +36,18 @@
(require 'libs)
(when my/enable-exwm
(when (and (eq 'x window-system)
my/enable-exwm)
(use-package exwm)
(setq exwm-input-global-keys nil))
(load-file "~/.emacs.d/lisp/keymap.el")
(when my/enable-exwm
(when (and (eq 'x window-system)
my/enable-exwm)
(org-babel-load-file
(expand-file-name "config-exwm.org"
user-emacs-directory))
user-emacs-directory)))
(org-babel-load-file
(expand-file-name "config-base.org"

View file

@ -1,9 +1,9 @@
(defmacro exwm-global-set-key (keybinding function)
`(progn
(if (boundp 'exwm-input-global-keys)
(when (boundp 'exwm-input-global-keys)
(add-to-list 'exwm-input-global-keys
(cons ,keybinding ,function))
(global-set-key ,keybinding ,function))))
(cons ,keybinding ,function)))
(global-set-key ,keybinding ,function)))
(define-prefix-command '*root-map*)
(exwm-global-set-key (kbd "C-t") '*root-map*)