-
Notifications
You must be signed in to change notification settings - Fork 44
Configuration
Philippe Vaucher edited this page Apr 21, 2014
·
3 revisions
First lines you should have:
(require 'workgroups2)
;; ... <--- Change some settings here
(workgroups-mode 1) ; put this one at the bottom of .emacsNow let's change some settings:
(setq wg-use-default-session-file nil) ; autoload/autosave (turn off for "emacs --daemon")
(setq wg-prefix-key (kbd "C-c z")) ; Prefix key
(setq wg-default-session-file "~/.emacs_session") ; Session file
;; Set your own keyboard shortcuts to reload/save/switch WG:
(global-set-key (kbd "<pause>") 'wg-reload-session)
(global-set-key (kbd "C-S-<pause>") 'wg-save-session)
(global-set-key (kbd "s-z") 'wg-switch-to-workgroup)
(global-set-key (kbd "s-/") 'wg-switch-to-previous-workgroup)Mode line string (wgName:~:-:**) is created by function wg-mode-line-string in workgroups-functions.el
To customize braces: [wgName:~:-:**]
(setq
wg-mode-line-decor-left-brace "["
wg-mode-line-decor-right-brace "]")
To display only workgroup name: [wgName]
(setq wg-mode-line-only-name t)
You can use these hooks:
workgroups-mode-hook ; activating Workgroups
workgroups-mode-exit-hook ; turning off
wg-switch-to-workgroup-hook ; when switching to a workgroup