summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2017-07-18 21:28:04 +0200
committerAlan Pearce2017-07-18 21:28:04 +0200
commit0c16d408cb07bb375c219ebf2c488730b2531b6e (patch)
treee441c2ba3fb7c41d0a2495f57fcec2eda565a6e9
parentb8965b3644797a3ff8d8382c89a25130f10855f8 (diff)
downloaddotfiles-0c16d408cb07bb375c219ebf2c488730b2531b6e.tar.lz
dotfiles-0c16d408cb07bb375c219ebf2c488730b2531b6e.tar.zst
dotfiles-0c16d408cb07bb375c219ebf2c488730b2531b6e.zip
Emacs: Move eyebrowse bindings from under WM keybinds
-rw-r--r--emacs/.emacs.d/init.org38
1 files changed, 27 insertions, 11 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 344914d..df092aa 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1060,22 +1060,38 @@ point whilst I’m moving about.
 
 ** eyebrowse
 
-Workspaces, a bit like dwm.
+Workspaces, a bit like dwm.  On Windows and Linux (at least the WMs
+I'm likely to use), super+{0-9} are taken from the OS, so use meta
+instead.  On macOS, super makes a lot of sense, as it's used by most
+programs to switch between program windows or views.
 
 #+BEGIN_SRC emacs-lisp
 (use-package eyebrowse
-  :bind (("s-0" . eyebrowse-switch-to-window-config-0)
-         ("s-1" . eyebrowse-switch-to-window-config-1)
-         ("s-2" . eyebrowse-switch-to-window-config-2)
-         ("s-3" . eyebrowse-switch-to-window-config-3)
-         ("s-4" . eyebrowse-switch-to-window-config-4)
-         ("s-5" . eyebrowse-switch-to-window-config-5)
-         ("s-6" . eyebrowse-switch-to-window-config-6)
-         ("s-7" . eyebrowse-switch-to-window-config-7)
-         ("s-8" . eyebrowse-switch-to-window-config-8)
-         ("s-9" . eyebrowse-switch-to-window-config-9))
   :config (progn
             (setq eyebrowse-new-workspace t)
+            (when (eq system-type 'darwin)
+              (bind-keys
+               ("s-0" . eyebrowse-switch-to-window-config-0)
+               ("s-1" . eyebrowse-switch-to-window-config-1)
+               ("s-2" . eyebrowse-switch-to-window-config-2)
+               ("s-3" . eyebrowse-switch-to-window-config-3)
+               ("s-4" . eyebrowse-switch-to-window-config-4)
+               ("s-5" . eyebrowse-switch-to-window-config-5)
+               ("s-6" . eyebrowse-switch-to-window-config-6)
+               ("s-7" . eyebrowse-switch-to-window-config-7)
+               ("s-8" . eyebrowse-switch-to-window-config-8)
+               ("s-9" . eyebrowse-switch-to-window-config-9)))
+            (bind-keys*
+             ("M-0" . eyebrowse-switch-to-window-config-0)
+             ("M-1" . eyebrowse-switch-to-window-config-1)
+             ("M-2" . eyebrowse-switch-to-window-config-2)
+             ("M-3" . eyebrowse-switch-to-window-config-3)
+             ("M-4" . eyebrowse-switch-to-window-config-4)
+             ("M-5" . eyebrowse-switch-to-window-config-5)
+             ("M-6" . eyebrowse-switch-to-window-config-6)
+             ("M-7" . eyebrowse-switch-to-window-config-7)
+             ("M-8" . eyebrowse-switch-to-window-config-8)
+             ("M-9" . eyebrowse-switch-to-window-config-9))
             (eyebrowse-mode +1)))
 #+END_SRC