mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 16:24:18 +00:00
This way, keys exist in terminal mode
This commit is contained in:
parent
e1dcbbdba7
commit
5ea41fc5b7
2 changed files with 8 additions and 6 deletions
8
init.el
8
init.el
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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*)
|
||||
|
|
|
|||
Loading…
Reference in a new issue