[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals-release/activities d8b3264b95 017/103: Add README
|
From: |
ELPA Syncer |
|
Subject: |
[elpa] externals-release/activities d8b3264b95 017/103: Add README |
|
Date: |
Tue, 30 Jan 2024 03:57:47 -0500 (EST) |
branch: externals-release/activities
commit d8b3264b9552469590d240a08bbb39187165b0d1
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Add README
---
README.org | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
diff --git a/README.org b/README.org
new file mode 100644
index 0000000000..3ee0c14fca
--- /dev/null
+++ b/README.org
@@ -0,0 +1,44 @@
+#+TITLE: activity.el
+
+Inspired by Genera's and KDE's concepts of "activities", this library allows
the user to select an "activity", the loading of which restores a window
configuration and/or frameset, along with the buffers shown in each window.
Saving an activity saves the state for later restoration. Switching away from
an activity saves the last-used state for later switching back to, while still
allowing the activity's initial or default state to be restored on demand.
Restoring an activity loads the [...]
+
+The implementation uses the bookmark system to save buffers' states--that is,
any major mode that supports the bookmark system is compatible. A buffer whose
major mode does not support the bookmark system (or does not support it well
enough to restore useful state) is not compatible and can't be fully restored,
or perhaps not at all; but solving that is as simple as implementing bookmark
support for the mode, which is usually trivial.
+
+Integration with Emacs's ~tab-bar-mode~ is provided: a window configuration or
frameset can be restored to a window or set of frames, or to a tab or set of
tabs.
+
+Various hooks are provided, both globally and per-activity, so that the user
can define functions to be called when an activity is saved, restored, or
switched from/to. For example, this could be used to limit the set of buffers
offered for switching to within an activity, or to track the time spent in an
activity.
+
+* Installation
+
+Until this library is available from a package archive, it's recommended to
install it using [[https://framagit.org/steckerhalter/quelpa][Quelpa]]:
+
+1. Install
[[https://framagit.org/steckerhalter/quelpa-use-package#installation][quelpa-use-package]]
(which can be installed directly from MELPA).
+2. Add this form to your init file (which includes a recommended
configuration):
+
+#+BEGIN_SRC elisp
+ (use-package activity
+ :quelpa (activity :fetcher github :repo "alphapapa/activity.el")
+
+ :config
+ ;; Automatically save activities' states when Emacs is idle and upon
+ ;; exit.
+ (activity-mode)
+ ;; Open activities in `tab-bar' tabs (otherwise frames are used, but
+ ;; the author doesn't test that as much).
+ (activity-tabs-mode))
+#+END_SRC
+
+If you choose to install it otherwise, you'll need to load both the ~activity~
and ~activity-tabs~ libraries, or ensure that the autoloads are generated
properly.
+
+* Usage
+
+** Workflow
+
+1. Arrange windows in a tab according to an activity you're performing.
+2. Call ~activity-save~ to save the activity under a name.
+3. Perform the activity for a while.
+4. Change window configuration, change tab, close the tab, or even restart
Emacs.
+5. Call ~activity-resume~ to resume the activity where you left off.
+6. Return to the original activity state with ~activity-reset~ (or ~C-u M-x
activity-resume RET~).
+7. Suspend the activity with ~activity-suspend~ (which saves its last state
and closes its frame/tab).
+
- [elpa] externals-release/activities c58c4b5182 006/103: WIP, (continued)
- [elpa] externals-release/activities c58c4b5182 006/103: WIP, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 990f3ac98d 013/103: WIP, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 10783f474f 012/103: WIP, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 11bf7557c8 034/103: Notes: Add, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 4707587d15 037/103: Docs: Update readme, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities ab283c95ad 038/103: Update: Readme, commentary, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 29d96dc378 050/103: Fix, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities ee287a1986 015/103: WIP, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities a45ca6dd3a 021/103: WIP: Use multisession, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 552704ed45 004/103: Meta: makem.sh, .gitignore, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities d8b3264b95 017/103: Add README,
ELPA Syncer <=
- [elpa] externals-release/activities 03427b803c 016/103: Reasonably functional, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 9f566e9523 020/103: WIP (Stuff is broken, don't use yet), ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 6725048041 024/103: Tidy: Header, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 7a3bba7b26 028/103: Add/Fix, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 760877b5eb 029/103: Set name of new activities' tabs/frames, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities a6b7ec1816 032/103: Fix: Mutation of window state, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 46a2346ea6 035/103: Update docs, bindings, alias, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 77852faab7 039/103: Add/Change: activity-switch, activity--switch, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities c7c3224aaa 045/103: Notes: Update, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 09b5d7f5f3 041/103: Remove: (activity-major-mode-alist), ELPA Syncer, 2024/01/30