[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals-release/activities 46a2346ea6 035/103: Update docs, bi
From: |
ELPA Syncer |
Subject: |
[elpa] externals-release/activities 46a2346ea6 035/103: Update docs, bindings, alias |
Date: |
Tue, 30 Jan 2024 03:57:48 -0500 (EST) |
branch: externals-release/activities
commit 46a2346ea6d24adf2f0d907cdb32486ce11f34ba
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Update docs, bindings, alias
---
README.org | 20 ++++++++++++++------
activity.el | 2 ++
2 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/README.org b/README.org
index d7b1888f5c..2b5deddca2 100644
--- a/README.org
+++ b/README.org
@@ -1,7 +1,5 @@
#+TITLE: activity.el
-*NOTE:* This is currently broken. Don't use it yet. (It's only a day old.)
-
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.
@@ -21,6 +19,16 @@ Until this library is available from a package archive, it's
recommended to inst
(use-package activity
:quelpa (activity :fetcher github :repo "alphapapa/activity.el")
+ :bind
+ (("C-x C-a a" . activity-resume)
+ ;; For convenience, we also bind `activity-resume' to "C-a", so the
+ ;; user need not lift the Control key. This makes it easier to
+ ;; quickly switch between activities.
+ ("C-x C-a C-a" . activity-resume)
+ ("C-x C-a g" . activity-revert)
+ ("C-x C-a n" . activity-new)
+ ("C-x C-a s" . activity-suspend))
+
:config
;; Automatically save activities' states when Emacs is idle and upon
;; exit.
@@ -37,12 +45,12 @@ If you choose to install it otherwise, you'll need to load
both the ~activity~ a
** 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.
+2. Call ~activity-new~ (~C-x C-a n~) 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).
+5. Call ~activity-resume~ (~C-x C-a C-a~) to resume the activity where you
left off.
+6. Return to the original activity state with ~activity-revert~ (~C-x C-a g~).
+7. Suspend the activity with ~activity-suspend~ (~C-x C-a s~) (which saves its
last state and closes its frame/tab).
* FAQ
diff --git a/activity.el b/activity.el
index b45b472ea3..149df1bcd9 100644
--- a/activity.el
+++ b/activity.el
@@ -298,6 +298,8 @@ In order to be safe for `kill-emacs-hook', this demotes
errors."
(user-error "No active activity"))
(activity-set activity :state 'default))
+(defalias 'activity-revert #'activity-reset)
+
(defun activity-discard (activity)
"Discard ACTIVITY and its state.
It will not be recoverable."
- [elpa] externals-release/activities ee287a1986 015/103: WIP, (continued)
- [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, 2024/01/30
- [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 <=
- [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
- [elpa] externals-release/activities 2372117021 040/103: Tidy, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities f41e4d0736 051/103: Notes: Update, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 79be058053 053/103: Meta: Use persist 0.6, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 21a728124a 056/103: Change: (activity--serialize) Demote bookmark errors, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 0eef05103b 057/103: Add: (activities-tabs-face), ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 05cabe39c5 059/103: Fix: (activity--serialize) Error, ELPA Syncer, 2024/01/30
- [elpa] externals-release/activities 36f73326d0 067/103: Merge: v0.1.1, ELPA Syncer, 2024/01/30