| 1 | Source: activities-el |
| 2 | Section: editors |
| 3 | Maintainer: Debian Emacsen team <[email protected]> |
| 4 | Uploaders: Xiyue Deng <[email protected]> |
| 5 | Build-Depends: debhelper-compat (= 13), |
| 6 | dh-elpa |
| 7 | Standards-Version: 4.7.4 |
| 8 | Vcs-Browser: https://salsa.debian.org/emacsen-team/activities-el |
| 9 | Vcs-Git: https://salsa.debian.org/emacsen-team/activities-el.git |
| 10 | Homepage: https://github.com/alphapapa/activities.el |
| 11 | |
| 12 | Package: elpa-activities |
| 13 | Architecture: all |
| 14 | Depends: ${elpa:Depends}, ${misc:Depends} |
| 15 | Recommends: emacs |
| 16 | Enhances: emacs |
| 17 | Description: Save/restore sets of windows, tabs/frames, and their buffers in Emacs |
| 18 | Inspired by Genera's and KDE's concepts of "activities", this |
| 19 | library allows the user to select an "activity", the loading of |
| 20 | which restores a window configuration into a `tab-bar' tab or |
| 21 | frame, along with the buffers shown in each window. Saving an |
| 22 | activity saves the state for later restoration. Switching away |
| 23 | from an activity saves the last-used state for later switching back |
| 24 | to, while still allowing the activity's initial or default state to |
| 25 | be restored on demand. Resuming an activity loads the last-used |
| 26 | state, or the initial/default state when a universal argument is |
| 27 | provided. |
| 28 | . |
| 29 | The implementation uses the bookmark system to save buffers' |
| 30 | states--that is, any major mode that supports the bookmark system |
| 31 | is compatible. A buffer whose major mode does not support the |
| 32 | bookmark system (or does not support it well enough to restore |
| 33 | useful state) is not compatible and can't be fully restored, or |
| 34 | perhaps not at all; but solving that is as simple as implementing |
| 35 | bookmark support for the mode, which is usually trivial. |
| 36 | . |
| 37 | Integration with Emacs's `tab-bar-mode' is provided: a window |
| 38 | configuration or can be restored to a `tab-bar' tab or to a frame. |
| 39 | . |
| 40 | Various hooks are provided, both globally and per-activity, so that |
| 41 | the user can define functions to be called when an activity is |
| 42 | saved, restored, or switched from/to. For example, this could be |
| 43 | used to limit the set of buffers offered for switching to within an |
| 44 | activity, or to track the time spent in an activity. |