File: remember.el.html
* The idea
Todo lists, schedules, phone databases... everything we use databases for is really just a way to extend the power of our memory. To be able to remember what our conscious mind may not currently have access to.
There are many different databases out there -- and good ones --
which this mode is not trying to replace. Rather, it's how that
data gets there that's the question. Most of the time, we just
want to say "Remember so-and-so's phone number, or that I have to
buy dinner for the cats tonight." That's the FACT. How it's
stored is really the computer's problem. But at this point in
time, it's most definitely also the user's problem, and sometimes
so laboriously so that people just let data slip, rather than
expend the effort to record it.
"Remember" is a mode for remembering data. It uses whatever
back-end is appropriate to record and correlate the data, but it's
main intention is to allow you to express as _little_ structure as
possible up front. If you later want to express more powerful
relationships between your data, or state assumptions that were at
first too implicit to be recognized, you can "study" the data later
and rearrange it. But the initial "just remember this" impulse
should be as close to simply throwing the data at Emacs as
possible.
* Implementation
Hyperbole, as a data presentation tool, always struck me as being very powerful, but it seemed to require a lot of "front-end" work before that data was really available. The problem with BBDB, or keeping up a Bibl-mode file, is that you have to use different functions to record the data, and it always takes time to stop what you're doing, format the data in the manner expected by that particular data interface, and then resume your work.
With "remember", you just hit M-x remember (you'd probably want
to bind this to an easily accessible keystroke, like C-x M-r), slam
in your text however you like, and then hit C-c C-c. It will file
the data away for later retrieval, and possibly indexing.
Indexing is to data what "studying" is in the real world. What you do when you study (or lucubrate, for some of us) is to realize certain relationships implicit in the data, so that you can make use of those relationships. Expressing that a certain quote you remembered was a religious quote, and that you want the ability to pull up all quotes of a religious nature, is what studying does. This is a more labor intensive task than the original remembering of the data, and it's typical in real life to set aside a special period of time for doing this work.
"Remember" works in the same way. When you enter data, either by
typing it into a buffer, or using the contents of the selected
region, it will store that data -- unindexed, uninterpreted -- in a
data pool. It will also try to remember as much context
information as possible (any text properties that were set, where
you copied it from, when, how, etc). Later, you can walk through
your accumulated set of data (both organized, and unorganized) and
easily begin moving things around, and making annotations that will
express the full meaning of that data, as far as you know it.
Obviously this latter stage is more user-interface intensive, and it would be nice if "remember" could do it as elegantly as possible, rather than requiring a billion keystrokes to reorganize your hierarchy. Well, as the future arrives, hopefully experience and user feedback will help to make this as intuitive a tool as possible.
* Future Goals
This tool hopes to track (and by doing it with as little new code as possible):
- The raw data that gets entered
- The relationships between that data (either determined
implicitly by parsing the input, or explicitly by the user's
studying the data).
- Revisioning of the data
- Where it came from, and any context information that can be
programmatically determined.
- Allowing particular views of the initially amorphous data pool
(ala the Xanadu concept).
- Storage of the data in a manner most appropriate to that data,
such as keeping address-book type information in BBDB, etc.
* Using "remember"
As a rough beginning, what I do is to keep my remember-data-file in
outline-mode format, with a final entry called "* Raw data". Then,
at intervals, I can move the data that gets appended there into
other places. But certainly this should evolve into an intuitive
mechanism for shuffling data off to its appropriate corner of the
universe.
To map the primary remember function to the keystroke F8, do the following.
(define-key global-map [f8] 'remember)
* Feedback
If Emacs could become a more intelligent data store, where brainstorming would focus on the IDEAS involved -- rather than the structuring and format of those ideas, or having to stop your current flow of work in order to record them -- it would map much more closely to how the mind (well, at least mine) works, and hence would eliminate that very manual-ness which computers from the very beginning have been championed as being able to reduce.
Have you ever noticed that having a laptop to write on doesn't
_actually_ increase the amount of quality material that you turn
out, in the long run? Perhaps its because the time we save
electronically in one way, we're losing electronically in another;
the tool should never dominate one's focus. As the mystic
Farīd ud-Dīn ʿAṭṭār wrote: "Be occupied as little as possible with
things of the outer world but much with things of the inner world;
then right action will overcome inaction."
* Diary integration
To use, add the following to your .emacs:
;; This should be before other entries that may return t
(add-to-list 'remember-handler-functions 'remember-diary-extract-entries)
This module recognizes entries of the form (defined by
remember-diary-regexp)
DIARY: ....
and puts them in your ~/.diary (or remember-diary-file) together with an annotation. Dates in the form YYYY.MM.DD are converted to YYYY-MM-DD so that diary can understand them.
For example:
DIARY: 2003.08.12 Sacha's birthday
is stored as
2003.08.12 Sacha's birthday
Defined variables (33)
remember-all-handler-functions | If non-nil every function in ‘remember-handler-functions’ is called. |
remember-annotation | Current annotation. |
remember-annotation-functions | Hook that returns an annotation to be inserted into the remember buffer. |
remember-before-remember-hook | Functions run before switching to the ‘remember-buffer’. |
remember-buffer | The name of the remember data entry buffer. |
remember-data-directory | The directory in which to store remember data as files. |
remember-data-file | The file in which to store unprocessed data. |
remember-default-priority | The default priority for remembered mail messages. |
remember-diary-file | File for extracted diary entries. |
remember-diary-regexp | Regexp to extract diary entries. |
remember-directory-file-name-format | Format string for the file name in which to store unprocessed data. |
remember-filter-functions | Functions run to filter remember data. |
remember-handler-functions | Functions run to process remember data. |
remember-in-new-frame | Non-nil means use a separate frame for capturing remember data. |
remember-initial-contents | Initial contents to place into ‘remember-buffer’. |
remember-leader-text | The text used to begin each remember item. |
remember-mailbox | The file in which to store remember data as mail. |
remember-mode-abbrev-table | Abbrev table for ‘remember-mode’. |
remember-mode-hook | Functions run upon entering ‘remember-mode’. |
remember-mode-map | Keymap used in ‘remember-mode’. |
remember-mode-syntax-table | Syntax table for ‘remember-mode’. |
remember-notes-buffer-name | Name of the notes buffer. |
remember-notes-bury-on-kill | Non-nil means ‘kill-buffer’ will bury the notes buffer instead of killing. |
remember-notes-initial-major-mode | Major mode to use in the notes buffer when it’s created. |
remember-notes-mode | Non-nil if Remember-Notes mode is enabled. |
remember-notes-mode-hook | Hook run after entering or leaving ‘remember-notes-mode’. |
remember-notes-mode-map | Keymap used in ‘remember-notes-mode’. |
remember-register | The register in which the window configuration is stored. |
remember-run-all-annotation-functions-flag | Non-nil means use all annotations returned by ‘remember-annotation-functions’. |
remember-save-after-remembering | Non-nil means automatically save after remembering. |
remember-text-format-function | The function to format the remembered text. |
remember-time-format | The format for time stamp, passed to ‘format-time-string’. |
remember-version | This version of remember. |
Defined functions (18)
remember | (&optional INITIAL) |
remember-append-to-file | () |
remember-buffer-desc | () |
remember-clipboard | () |
remember-destroy | () |
remember-diary-convert-entry | (ENTRY) |
remember-diary-extract-entries | () |
remember-finalize | () |
remember-mail-date | (&optional RFC822-P) |
remember-mode | () |
remember-notes | (&optional SWITCH-TO) |
remember-notes--kill-buffer-query | () |
remember-notes-mode | (&optional ARG) |
remember-notes-save-and-bury-buffer | () |
remember-other-frame | (&optional INITIAL) |
remember-region | (&optional BEG END) |
remember-store-in-files | () |
remember-store-in-mailbox | () |