Files
@ c0eb8c539015
Branch filter:
Location: workgroups2/README.md - annotation
c0eb8c539015
3.8 KiB
text/markdown
1 more test, trying to fix #48
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | 7f246ecd74b9 ce77365594d8 9e8c0613b53b 576ae43b0f31 638143f8b756 3f3cde006b0a 3f3cde006b0a 39c60dfa7be0 443938b472d4 76f0d6fad863 76f0d6fad863 443938b472d4 76f0d6fad863 76f0d6fad863 b6322ce85e29 443938b472d4 39c60dfa7be0 443938b472d4 b6322ce85e29 b6322ce85e29 d0274b1cb10e d0274b1cb10e d0274b1cb10e d0274b1cb10e d0274b1cb10e b6322ce85e29 b6322ce85e29 b6322ce85e29 b6322ce85e29 b6322ce85e29 b6322ce85e29 b6322ce85e29 b6322ce85e29 b6322ce85e29 b6322ce85e29 b6322ce85e29 b6322ce85e29 b6322ce85e29 b6322ce85e29 443938b472d4 39c60dfa7be0 39c60dfa7be0 b6322ce85e29 b6322ce85e29 d0274b1cb10e d0274b1cb10e d0274b1cb10e 6fcf3ae97cb7 d0274b1cb10e 443938b472d4 d0274b1cb10e d0274b1cb10e 6fcf3ae97cb7 d0274b1cb10e d0274b1cb10e 443938b472d4 d0274b1cb10e d0274b1cb10e d0274b1cb10e d0274b1cb10e d0274b1cb10e d0274b1cb10e 443938b472d4 d0274b1cb10e d0274b1cb10e 0f280ca956ef 0f280ca956ef 412d81a62c59 412d81a62c59 412d81a62c59 0f280ca956ef 0f280ca956ef 0f280ca956ef 0f280ca956ef 412d81a62c59 412d81a62c59 412d81a62c59 412d81a62c59 412d81a62c59 412d81a62c59 412d81a62c59 412d81a62c59 0f280ca956ef 0f280ca956ef 412d81a62c59 443938b472d4 412d81a62c59 443938b472d4 412d81a62c59 412d81a62c59 412d81a62c59 412d81a62c59 412d81a62c59 412d81a62c59 443938b472d4 412d81a62c59 443938b472d4 412d81a62c59 443938b472d4 a1fbffbb967f a1fbffbb967f a1fbffbb967f 443938b472d4 412d81a62c59 443938b472d4 a1fbffbb967f a1fbffbb967f a1fbffbb967f 412d81a62c59 412d81a62c59 a1fbffbb967f a1fbffbb967f 443938b472d4 443938b472d4 443938b472d4 443938b472d4 412d81a62c59 412d81a62c59 | [](https://github.com/pashinin/workgroups2)
[](http://workgroups2.readthedocs.org/en/latest/)
[](https://travis-ci.org/pashinin/workgroups2)
[](https://www.gittip.com/pashinin)
# Workgroups for Emacs
Workgroups is a session manager for Emacs.
- It saves all your opened buffers, their location and sizes on disk to restore later
- You can create several workspaces
You can also restore such buffers as: org-agenda, shell, magit-status, help.
Fork it, [add more special buffers support](https://github.com/pashinin/workgroups2/wiki/How-to-restore-a-specific-type-of-buffer). Or even better - fix bugs.
## Install
Just install "workgroups2" from Melpa and activate it with
```elisp
(require 'workgroups2)
;; Change some settings
(workgroups-mode 1) ; put this one at the bottom of .emacs
```
## Use
Most commands are bound to both `<prefix> <key>` and `<prefix> C-<key>`.
By default prefix is: "C-c z" (To change it - see settings below)
<prefix> <key>
<prefix> c - create workgroup
<prefix> A - rename workgroup
<prefix> k - kill workgroup
<prefix> v - switch to workgroup
<prefix> C-s - save session
<prefix> C-f - load session
## Configure
If you want to change some settings - here is an example:
```elisp
(require 'workgroups2)
;; Your settings here
;;(setq wg-session-load-on-start t) ; default: (not (daemonp))
;; Change prefix key (before activating WG)
(setq wg-prefix-key (kbd "C-c z"))
;; Change workgroups session file
(setq wg-session-file "~/.emacs.d/.emacs_workgroups")
;; Set your own keyboard shortcuts to reload/save/switch WGs:
;; "s" == "Super" or "Win"-key, "S" == Shift, "C" == Control
(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)
(workgroups-mode 1) ; put this one at the bottom of .emacs
```
## More options
You can use `M-x customize-group` `workgroups` to see all variables and
faces to change.
```elisp
;; What to do on Emacs exit / workgroups-mode exit?
(setq wg-emacs-exit-save-behavior 'save) ; Options: 'save 'ask nil
(setq wg-workgroups-mode-exit-save-behavior 'save) ; Options: 'save 'ask nil
;; Mode Line changes
;; Display workgroups in Mode Line?
(setq wg-mode-line-display-on t) ; Default: (not (featurep 'powerline))
(setq wg-flag-modified t) ; Display modified flags as well
(setq wg-mode-line-decor-left-brace "["
wg-mode-line-decor-right-brace "]" ; how to surround it
wg-mode-line-decor-divider ":")
```
### Hooks
Hooks' names can tell when they are executed
```elisp
workgroups-mode-hook ; when `workgroups-mode' is turned on
workgroups-mode-exit-hook ; `workgroups-mode' is turned off
wg-before-switch-to-workgroup-hook
wg-after-switch-to-workgroup-hook
```
## Help
For you:
1. `<prefix> ?` or `(wg-help)` - help buffer listing all the commands
and their bindings.
2. `M-x customize-group RET workgroups RET` - all customization options
For me:
1. **Reporting a bug** - give me full `(backtrace)` of what
happened and how you did it.
2. **Requesting a major-mode support** - write how you *install*,
*configure* and *run* yours.
3. Make pull-requests
4. Ask questions (if you don't know how to hack it). Personally I
found the code *very* complex at first
## License
GPL. This extension is based on experimental branch of the
[original repo](http://github.com/tlh/workgroups.el).
|