From 3d0e86d41b0239ddaa9afc79893fbdc4edbcfc5d Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 11 Feb 2021 06:40:02 +0000 Subject: switch-window also in exwm kbs --- exwm.org | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'exwm.org') diff --git a/exwm.org b/exwm.org index 2707aa8..cc08239 100644 --- a/exwm.org +++ b/exwm.org @@ -454,24 +454,14 @@ #+end_src * Keybindings #+BEGIN_SRC emacs-lisp - (defun jao-exwm-x-kbs () - (when (and exwm-class-name (string= exwm-class-name "XTerm")) - (exwm-input-set-local-simulation-keys '(([?\C-c ?\C-c] . [?\C-c]) - ([?\C-x ?\C-c] . [?\C-c]))))) - - ;; (add-hook 'exwm-manage-finish-hook #'jao-exwm-x-kbs) - - ;; To add a key binding only available in line-mode, simply define it in - ;; `exwm-mode-map'. The following example shortens 'C-c q' to 'C-q'. (define-key exwm-mode-map [?\C-q] #'exwm-input-send-next-key) - (define-key exwm-mode-map [?\s-k] #'exwm-input-release-keyboard) (define-key exwm-mode-map [?\s-f] #'jao-hydra-float/body) (define-key exwm-mode-map [?\s-m] #'jao-hydra-media/body) (define-key exwm-mode-map [?\s-s] #'jao-hydra-spotify/body) (define-key exwm-mode-map [?\s-w] #'jao-hydra-exwm/body) (define-key exwm-mode-map [?\s-p] #'jao-exwm-pdf-goto-org) (define-key exwm-mode-map [?\s-P] #'jao-exwm-pdf-goto-org*) - ;; (define-key exwm-mode-map [?\s-w] #'jao-hydra-exwm/body) + (setq exwm-input-global-keys '(([?\s-0] . jao-afio--goto-scratch) @@ -485,8 +475,8 @@ ([?\s-c] . jao-hydra-chats/body) ([?\s-t] . jao-vterm-here-toggle) ([?\s-n] . jao-hydra-ednc/body) - ([?\s-O] . ace-swap-window) - ([?\s-o] . ace-window) + ([?\s-O] . switch-window-then-swap-buffer) + ([?\s-o] . switch-window) ([?\s-x] . jao-hydra-exwm-misc/body) ([?\s-z] . jao-hydra-sleep/body) ([XF86AudioMute] . jao-mixer-master-toogle) -- cgit v1.2.3