From e753c71d1e4511c21151a89cea82c45ca5327f40 Mon Sep 17 00:00:00 2001 From: Diego Berrocal Date: Thu, 14 Jan 2016 16:05:53 -0500 Subject: [PATCH] Add bindings for workspaces and layouts C-tab C-S-tab for workspaces (like tabs [vim tabs?]) C-s-tab C-S-s-tab for layouts (using super key like a WM) Also ( M-s- | C-s ) + [0-9] to change to number [0-9] workspace/layout --- .../+window-management/eyebrowse/packages.el | 18 ++++++++++++++++++ .../spacemacs-layouts/packages.el | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/layers/+window-management/eyebrowse/packages.el b/layers/+window-management/eyebrowse/packages.el index e15deb16d177..279bd7a45094 100644 --- a/layers/+window-management/eyebrowse/packages.el +++ b/layers/+window-management/eyebrowse/packages.el @@ -59,6 +59,24 @@ "[n] next, [p/N] previous, [TAB] back and forth, [c] close, " "[r] rename")))))) + (global-set-key (kbd "") + 'spacemacs//workspaces-eyebrowse-next-window-config-l) + (global-set-key (kbd "") + 'spacemacs//workspaces-eyebrowse-prev-window-config-h) + (global-set-key (kbd "") + 'spacemacs//workspaces-eyebrowse-prev-window-config-h) + + (global-set-key (kbd "M-s-1") 'spacemacs//workspaces-eyebrowse-switch-to-window-config-1-1) + (global-set-key (kbd "M-s-2") 'spacemacs//workspaces-eyebrowse-switch-to-window-config-2-2) + (global-set-key (kbd "M-s-3") 'spacemacs//workspaces-eyebrowse-switch-to-window-config-3-3) + (global-set-key (kbd "M-s-4") 'spacemacs//workspaces-eyebrowse-switch-to-window-config-4-4) + (global-set-key (kbd "M-s-5") 'spacemacs//workspaces-eyebrowse-switch-to-window-config-5-5) + (global-set-key (kbd "M-s-6") 'spacemacs//workspaces-eyebrowse-switch-to-window-config-6-6) + (global-set-key (kbd "M-s-7") 'spacemacs//workspaces-eyebrowse-switch-to-window-config-7-7) + (global-set-key (kbd "M-s-8") 'spacemacs//workspaces-eyebrowse-switch-to-window-config-8-8) + (global-set-key (kbd "M-s-9") 'spacemacs//workspaces-eyebrowse-switch-to-window-config-9-9) + (global-set-key (kbd "M-s-0") 'spacemacs//workspaces-eyebrowse-switch-to-window-config-0-0) + (spacemacs|define-micro-state workspaces :doc (spacemacs//workspaces-ms-documentation) :use-minibuffer t diff --git a/layers/+window-management/spacemacs-layouts/packages.el b/layers/+window-management/spacemacs-layouts/packages.el index 5df52b41bbb4..2923f93ccb56 100644 --- a/layers/+window-management/spacemacs-layouts/packages.el +++ b/layers/+window-management/spacemacs-layouts/packages.el @@ -114,6 +114,25 @@ (when (equal 1 spacemacs--layouts-ms-doc-toggle) spacemacs--layouts-ms-documentation)))) + + (global-set-key (kbd "") + 'spacemacs//layouts-persp-next-n) + (global-set-key (kbd "") + 'spacemacs//layouts-persp-prev-p) + (global-set-key (kbd "") + 'spacemacs//layouts-persp-prev-p) + + (global-set-key (kbd "C-s-1") 'spacemacs//layouts-spacemacs/persp-switch-to-1-1) + (global-set-key (kbd "C-s-2") 'spacemacs//layouts-spacemacs/persp-switch-to-2-2) + (global-set-key (kbd "C-s-3") 'spacemacs//layouts-spacemacs/persp-switch-to-3-3) + (global-set-key (kbd "C-s-4") 'spacemacs//layouts-spacemacs/persp-switch-to-4-4) + (global-set-key (kbd "C-s-5") 'spacemacs//layouts-spacemacs/persp-switch-to-5-5) + (global-set-key (kbd "C-s-6") 'spacemacs//layouts-spacemacs/persp-switch-to-6-6) + (global-set-key (kbd "C-s-7") 'spacemacs//layouts-spacemacs/persp-switch-to-7-7) + (global-set-key (kbd "C-s-8") 'spacemacs//layouts-spacemacs/persp-switch-to-8-8) + (global-set-key (kbd "C-s-9") 'spacemacs//layouts-spacemacs/persp-switch-to-9-9) + (global-set-key (kbd "C-s-0") 'spacemacs//layouts-spacemacs/persp-switch-to-0-0) + (spacemacs|define-micro-state layouts :doc (spacemacs//layouts-ms-doc) :use-minibuffer t