Add 2009 to copyright years.
[emacs.git] / doc / misc / remember.texi
blob0ec59daf09e466a122e20c4431c4f89d7a43c2bc
1 \input texinfo @c -*-texinfo-*-
2 @c %**start of header
3 @setfilename ../../info/remember
4 @settitle Remember Manual
5 @c %**end of header
7 @dircategory Emacs
8 @direntry
9 * Remember: (remember). Simple information manager for Emacs
10 @end direntry
12 @syncodeindex fn cp
14 @copying
15 This manual is for Remember Mode, version 1.9
17 Copyright @copyright{} 2001, 2004, 2005, 2007, 2008, 2009
18 Free Software Foundation, Inc.
20 @quotation
21 Permission is granted to copy, distribute and/or modify this document
22 under the terms of the GNU Free Documentation License, Version 1.3 or
23 any later version published by the Free Software Foundation; with no
24 Invariant Sections, with the Front-Cover texts being ``A GNU Manual'',
25 and with the Back-Cover Texts as in (a) below.  A copy of the license
26 is included in the section entitled ``GNU Free Documentation License''.
28 (a) The FSF's Back-Cover Text is: ``You have the freedom to copy and
29 modify this GNU manual.  Buying copies from the FSF supports it in
30 developing GNU and promoting software freedom.''
31 @end quotation
32 @end copying
34 @titlepage
35 @title Guide to Remember Mode
36 @subtitle a simple information manager
37 @subtitle for Emacs and XEmacs
39 @c The following two commands
40 @c start the copyright page.
41 @page
42 @vskip 0pt plus 1filll
43 @insertcopying
44 @end titlepage
46 @c So the toc is printed at the start
47 @contents
49 @ifnottex
50 @node Top, Preface, (dir), (dir)
51 @comment  node-name,  next,  previous,  up
52 @top Remember
54 @insertcopying
55 @end ifnottex
57 @menu
58 * Preface::                     About the documentation.
59 * Introduction::                What is Remember Mode?
60 * Installation::                How to install Remember.
61 * Implementation::              How Remember came into existence.
62 * Quick Start::                 Get started using Remember.
63 * Function Reference::          Interactive functions in remember.el.
64 * Keystrokes::                  Keystrokes bound in Remember Mode.
65 * Backends::                    Backends for saving notes.
66 * GNU Free Documentation License::  The license for this documentation.
67 * Concept Index::               Search for terms.
69 @detailmenu
70  --- The Detailed Node Listing ---
72 Backends
74 * Text File::                   Saving to a text file.
75 * Diary::                       Saving to a Diary file.
76 * Mailbox::                     Saving to a mailbox.
77 * Org::                         Saving to an Org Mode file.
79 @end detailmenu
80 @end menu
82 @node Preface, Introduction, Top, Top
83 @comment  node-name,  next,  previous,  up
84 @chapter Preface
86 This document describes remember-el, which was written by John Wiegley,
87 was once maintained by Sacha Chua, and is now maintained by the Emacs
88 developers.
90 This document is a work in progress, and your contribution will be
91 greatly appreciated.
93 @node Introduction, Installation, Preface, Top
94 @comment  node-name,  next,  previous,  up
95 @chapter Introduction
97 Todo lists, schedules, phone databases... everything we use databases
98 for is really just a way to extend the power of our memory, to be able
99 to remember what our conscious mind may not currently have access to.
101 There are many different databases out there---and good ones---which
102 this mode is not trying to replace.  Rather, it's how that data gets
103 there that's the question.  Most of the time, we just want to say
104 "Remember so-and-so's phone number, or that I have to buy dinner for the
105 cats tonight."  That's the FACT.  How it's stored is really the
106 computer's problem.  But at this point in time, it's most definitely
107 also the user's problem, and sometimes so laboriously so that people
108 just let data slip, rather than expend the effort to record it.
110 ``Remember'' is a mode for remembering data.  It uses whatever
111 back-end is appropriate to record and correlate the data, but its main
112 intention is to allow you to express as @emph{little} structure as
113 possible up front.  If you later want to express more powerful
114 relationships between your data, or state assumptions that were at
115 first too implicit to be recognized, you can ``study'' the data later
116 and rearrange it.  But the initial ``just remember this'' impulse
117 should be as close to simply throwing the data at Emacs as possible.
119 Have you ever noticed that having a laptop to write on doesn't
120 @emph{actually} increase the amount of quality material that you turn
121 out, in the long run?  Perhaps it's because the time we save
122 electronically in one way, we're losing electronically in another; the
123 tool should never dominate one's focus.  As the mystic Faridu'd-Din
124 `Attar wrote: ``Be occupied as little as possible with things of the
125 outer world but much with things of the inner world; then right action
126 will overcome inaction.''
128 If Emacs could become a more intelligent data store, where brainstorming
129 would focus on the @emph{ideas} involved---rather than the structuring
130 and format of those ideas, or having to stop your current flow of work
131 in order to record them---it would map much more closely to how the mind
132 (well, at least mine) works, and hence would eliminate that very
133 manual-ness which computers from the very beginning have been championed
134 as being able to reduce.
136 @node Installation, Implementation, Introduction, Top
137 @comment  node-name,  next,  previous,  up
138 @chapter Installation
140 Installing Remember Mode is as simple as adding the following lines to
141 your Emacs configuration file (usually @file{~/.emacs.d/init.el} or
142 @file{~/.emacs}).
144 @lisp
145 (add-to-list 'load-path "/path/to/remember")
146 (require 'remember)
147 @end lisp
149 @node Implementation, Quick Start, Installation, Top
150 @comment  node-name,  next,  previous,  up
151 @chapter Implementation
153 Hyperbole, as a data presentation tool, always struck me as being very
154 powerful, but it seemed to require a lot of ``front-end'' work before
155 that data was really available.  The problem with BBDB, or keeping up
156 a Bibl-mode file, is that you have to use different functions to
157 record the data, and it always takes time to stop what you're doing,
158 format the data in the manner expected by that particular data
159 interface, and then resume your work.
161 With ``remember'', you just hit @kbd{M-x remember} (you'd probably
162 want to bind this to an easily accessible keystroke, like @kbd{C-x
163 M-r}), slam in your text however you like, and then hit @kbd{C-c C-c}.
164 It will file the data away for later retrieval, and possibly indexing.
166 Indexing is to data what ``studying'' is in the real world.  What you do
167 when you study (or lucubrate, for some of us) is to realize certain
168 relationships implicit in the data, so that you can make use of those
169 relationships.  Expressing that a certain quote you remembered was a
170 literary quote, and that you want the ability to pull up all quotes of a
171 literary nature, is what studying does.  This is a more labor intensive
172 task than the original remembering of the data, and it's typical in real
173 life to set aside a special period of time for doing this work.
175 ``Remember'' works in the same way.  When you enter data, either by
176 typing it into a buffer, or using the contents of the selected region,
177 it will store that data---unindexed, uninterpreted---in a data pool.
178 It will also try to remember as much context information as possible
179 (any text properties that were set, where you copied it from, when,
180 how, etc).  Later, you can walk through your accumulated set of data
181 (both organized, and unorganized) and easily begin moving things
182 around, and making annotations that will express the full meaning of
183 that data, as far as you know it.
185 Obviously this latter stage is more user-interface intensive, and it
186 would be nice if ``remember'' could do it as elegantly as possible,
187 rather than requiring a billion keystrokes to reorganize your
188 hierarchy.  Well, as the future arrives, hopefully experience and user
189 feedback will help to make this as intuitive a tool as possible.
191 @node Quick Start, Function Reference, Implementation, Top
192 @comment  node-name,  next,  previous,  up
193 @chapter Quick Start
195 @itemize
197 @item
198 Load @file{remember.el}.
200 @item
201 Type @kbd{M-x remember}. The @samp{*Remember*} buffer should be
202 displayed.
204 @item
205 Type in what you want to remember. The first line will be treated as
206 the headline, and the rest of the buffer will contain the body of the
207 note.
209 @item
210 Type @kbd{C-c C-c} (@code{remember-finalize}) to save the note and close
211 the @samp{*Remember*} buffer.
212 @end itemize
214 By default, @code{remember-finalize} saves the note in @file{~/.notes}.
215 You can edit it now to see the remembered and timestamped note. You
216 can edit this file however you want. New entries will always be added
217 to the end.
219 To remember a region of text, use the universal prefix. @kbd{C-u M-x
220 remember} displays a @samp{*Remember*} buffer with the region as the
221 initial contents.
223 As a simple beginning, you can start by using the Text File backend,
224 keeping your @file{~/.notes} file in outline-mode format, with a final
225 entry called @samp{* Raw data}. Remembered data will be added to the
226 end of the file. Every so often, you can move the data that gets
227 appended there into other files, or reorganize your document.
229 You can also store remembered data in other backends.
230 (@pxref{Backends})
232 Here is one way to map the remember functions in your @file{.emacs} to
233 very accessible keystrokes facilities using the mode:
235 @lisp
236 (autoload 'remember ``remember'' nil t)
237 (autoload 'remember-region ``remember'' nil t)
239 (define-key global-map (kbd "<f9> r") 'remember)
240 (define-key global-map (kbd "<f9> R") 'remember-region)
241 @end lisp
243 By default, remember uses the first annotation returned by
244 @code{remember-annotation-functions}. To include all of the annotations,
245 set @code{remember-run-all-annotation-functions-flag} to non-nil.
247 @defopt remember-run-all-annotation-functions-flag
248 Non-nil means use all annotations returned by
249 @code{remember-annotation-functions}.
250 @end defopt
252 You can write custom functions that use a different set of
253 remember-annotation-functions. For example:
255 @lisp
256 (defun my/remember-with-filename ()
257  "Always use the filename."
258  (interactive)
259  (let ((remember-annotation-functions '(buffer-file-name)))
260   (call-interactively 'remember)))
261 @end lisp
263 @node Function Reference, Keystrokes, Quick Start, Top
264 @comment  node-name,  next,  previous,  up
265 @chapter Function Reference
267 @file{remember.el} defines the following interactive functions:
269 @defun remember initial
270 Remember an arbitrary piece of data. With a prefix, it will use the
271 region as @var{initial}.
272 @end defun
274 @defun remember-region beg end
275 If called from within the remember buffer, @var{beg} and @var{end} are
276 ignored, and the entire buffer will be remembered.  If called from any
277 other buffer, that region, plus any context information specific to
278 that region, will be remembered.
279 @end defun
281 @defun remember-clipboard
282 Remember the contents of the current clipboard.  This is most useful
283 for remembering things from Netscape or other X Windows applications.
284 @end defun
286 @defun remember-finalize
287 Remember the contents of the current buffer.
288 @end defun
290 @defun remember-mode
291 This enters the major mode for output from @command{remember}.  This
292 buffer is used to collect data that you want remember.  Just hit
293 @kbd{C-c C-c} when you're done entering, and it will go ahead and file
294 the data for latter retrieval, and possible indexing.
295 @end defun
297 @node Keystrokes, Backends, Function Reference, Top
298 @comment  node-name,  next,  previous,  up
299 @chapter Keystroke Reference
301 @file{remember.el} defines the following keybindings by default:
303 @table @kbd
305 @item C-c C-c (`remember-finalize')
306 Remember the contents of the current buffer.
308 @item C-c C-k (`remember-destroy')
309 Destroy the current *Remember* buffer.
311 @item C-x C-s (`remember-finalize')
312 Remember the contents of the current buffer.
314 @end table
316 @node Backends, GNU Free Documentation License, Keystrokes, Top
317 @comment  node-name,  next,  previous,  up
318 @chapter Backends
320 You can save remembered notes to a variety of backends.
322 @menu
323 * Text File::                   Saving to a text file.
324 * Diary::                       Saving to a Diary file.
325 * Mailbox::                     Saving to a mailbox.
326 * Org::                         Saving to an Org Mode file.
327 @end menu
329 @node Text File, Diary, Backends, Backends
330 @comment  node-name,  next,  previous,  up
331 @section Saving to a Text File
332 @cindex text file, saving to
334 @subheading Insinuation
336 @lisp
337 (setq remember-handler-functions '(remember-append-to-file))
338 @end lisp
340 @subheading Options
342 @defopt remember-data-file
343 The file in which to store unprocessed data.
344 @end defopt
346 @defopt remember-leader-text
347 The text used to begin each remember item.
348 @end defopt
350 @node Diary, Mailbox, Text File, Backends
351 @comment  node-name,  next,  previous,  up
352 @section Saving to a Diary file
353 @cindex diary, integration
355 @subheading Insinuation
357 @lisp
358 (add-to-list 'remember-handler-functions 'remember-diary-extract-entries)
359 @end lisp
361 @subheading Options
363 @defopt remember-diary-file
364 File for extracted diary entries.
365 If this is nil, then @code{diary-file} will be used instead."
366 @end defopt
368 @node Mailbox, Org, Diary, Backends
369 @comment  node-name,  next,  previous,  up
370 @section Saving to a Mailbox
371 @cindex mailbox, saving to
373 @subheading Insinuation
375 @lisp
376 (add-to-list 'remember-handler-functions 'remember-store-in-mailbox)
377 @end lisp
379 @subheading Options
381 @defopt remember-mailbox
382 The file in which to store remember data as mail.
383 @end defopt
385 @defopt remember-default-priority
386 The default priority for remembered mail messages.
387 @end defopt
389 @node Org, , Mailbox, Backends
390 @comment  node-name,  next,  previous,  up
391 @section Saving to an Org Mode file
392 @cindex org mode, integration
394 For instructions on how to integrate Remember with Org Mode,
395 consult @ref{Remember, , , org}.
397 @node GNU Free Documentation License, Concept Index, Backends, Top
398 @appendix GNU Free Documentation License
399 @include doclicense.texi
401 @node Concept Index,  , GNU Free Documentation License, Top
402 @comment  node-name,  next,  previous,  up
403 @unnumbered Index
405 @printindex cp
407 @bye
409 @ignore
410    arch-tag: 5b980db0-20cc-4167-b845-52dc11d53b9f
411 @end ignore