From 6171826508978d59ae39491b892a927aa414495e Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 5 Mar 2021 02:10:18 +0000 Subject: a few keybinding adjustments --- init.org | 47 ++++++++++++----------------------------------- 1 file changed, 12 insertions(+), 35 deletions(-) (limited to 'init.org') diff --git a/init.org b/init.org index 0276752..e1b3347 100644 --- a/init.org +++ b/init.org @@ -1271,27 +1271,6 @@ ("M-O" . ace-swap-window) ("C-x p" . ace-window))) #+end_src -*** Switch window - An alternative for this one is ace-window, but it has the problem - of not displaying its overlay over org buffers (sometimes) and - introducing a dependency (avy). - #+begin_src emacs-lisp :load no - (use-package switch-window - :ensure t - :demand t - :custom ((switch-window-minibuffer-shortcut ?z) - (switch-window-background t) - (switch-window-shortcut-style 'qwerty) - (switch-window-timeout 7) - (switch-window-threshold 3)) - :bind (("M-o" . switch-window) - ("M-O" . switch-window-then-swap-buffer) - ("H-s-o" . switch-window) - ("H-s-O" . switch-window-then-swap-buffer) - ("C-x 4 d" . switch-window-then-dired) - ("C-x 4 f" . switch-window-then-find-file) - ("C-x 4 b" . switch-window-then-display-buffer))) - #+end_src *** first window and transient other window #+begin_src emacs-lisp @@ -3860,20 +3839,18 @@ ;; (signel-start)) (jao-circe p)) - (global-set-key - (kbd "s-c") - (pretty-hydra-define jao-hydra-chats (global-map "s-c" :color blue :quit-key "q") - ("Connect" - (("A" (jao-chats t) "all chats -y") - ("a" jao-chats "all chats") - ("S" slack-start "slack") - ("C" (jao-circe t) "circe -y") - ("s-c" jao-hydra-chats/body nil)) - "Go" - (("c" (jao-buffer-same-mode 'circe-channel-mode) "circe buffer") - ("s" (jao-buffer-same-mode 'slack-message-buffer-mode) "slack buffer") - ("t" (jao-buffer-same-mode 'telega-chat-mode) "telega buffer") - ("T" telega "telega rooster"))))) + (pretty-hydra-define jao-hydra-chats (global-map "s-q" :color blue :quit-key "q") + ("Connect" + (("A" (jao-chats t) "all chats -y") + ("a" jao-chats "all chats") + ("S" slack-start "slack") + ("C" (jao-circe t) "circe -y") + ("s-q" jao-hydra-chats/body nil)) + "Go" + (("c" (jao-buffer-same-mode 'circe-channel-mode) "circe buffer") + ("s" (jao-buffer-same-mode 'slack-message-buffer-mode) "slack buffer") + ("t" (jao-buffer-same-mode 'telega-chat-mode) "telega buffer") + ("T" telega "telega rooster")))) #+end_src * Multimedia -- cgit v1.2.3