Skip to content

Commit

Permalink
Add bindings for workspaces and layouts
Browse files Browse the repository at this point in the history
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
  • Loading branch information
CestDiego committed Jan 14, 2016
1 parent 8adb066 commit e753c71
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
18 changes: 18 additions & 0 deletions layers/+window-management/eyebrowse/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,24 @@
"[n] next, [p/N] previous, [TAB] back and forth, [c] close, "
"[r] rename"))))))

(global-set-key (kbd "<C-tab>")
'spacemacs//workspaces-eyebrowse-next-window-config-l)
(global-set-key (kbd "<C-S-tab>")
'spacemacs//workspaces-eyebrowse-prev-window-config-h)
(global-set-key (kbd "<C-S-iso-lefttab>")
'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
Expand Down
19 changes: 19 additions & 0 deletions layers/+window-management/spacemacs-layouts/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,25 @@
(when (equal 1 spacemacs--layouts-ms-doc-toggle)
spacemacs--layouts-ms-documentation))))


(global-set-key (kbd "<C-s-tab>")
'spacemacs//layouts-persp-next-n)
(global-set-key (kbd "<C-S-s-tab>")
'spacemacs//layouts-persp-prev-p)
(global-set-key (kbd "<C-S-s-iso-lefttab>")
'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
Expand Down

0 comments on commit e753c71

Please sign in to comment.