diff options
-rw-r--r-- | emacs/.emacs.d/init.org | 38 |
1 files changed, 27 insertions, 11 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 344914dd..df092aa4 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 |