1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
|
<!--startcut ==========================================================-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<title>Notes-Mode for Emacs</title>
</head>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#003380"
ALINK="#FF0000">
<!--endcut ============================================================-->
<H4>
"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <HR> <P>
<!--===================================================================-->
<center><h1>A True "Notebook" Computer?</h1></center>
<center>
<h4><a href="mailto: layers@marktwain.net">by Larry Ayers</a></h4>
</center>
<P><HR><P>
<center><h3>Introduction</h3></center>
<p>Recently I happened across an ingeniously designed add-on LISP package for
the GNU Emacs editor. It's called Notes-Mode, and it helps organize and
cross-reference notes by subject and date. It was written by <a href="mailto:
johnh@isi.edu">John Heidemann</a>.
Here's his account of how he happened to write the
package:
<blockquote>
Briefly, I started keeping notes on-line shortly after I got a
portable computer in January, 1994. After a month-and-a-half of
notes, I realized that one does not live by grep alone, so I started
adding indexing facilities.
In June of 1995 some other Ficus-project members started keeping
and indexing on-line notes using other home-grown systems. After some
discussion, we generalized my notes-mode work and they started using
it.
Over the next 18 months notes-mode grew. Finally, in April, 1996 I
wrote documentation, guaranteeing that innovation on notes-mode will
now cease or the documentation will become out of date.</blockquote>
<br>
<hr>
<center><h3>Using Notes-Mode</h3></center>
<p>Here's what one of my smaller notes files looks like:<br>
<hr>
<pre>
25-Jul-97 Friday
----------------
* Today
-------
prev: <file:///~/notes/199707/970724#* Today>
next: <file:///~/notes/199707/970728#* Today>
* Prairie Plants
----------------
prev: <file:///~/notes/199707/970724#* Prairie Plants>
next: <none>
</pre>
So far the only results I've seen in response to the various
desultory efforts I've made to direct-seed prairie plants in
the west prairie:
1: Several rattlesnake-master plants in a spot
where we burned a brush-pile. Two are blooming
this summer.
2: One new-england aster near the above.
There are probably others which are small and haven't flowered
yet.
* Linux Notes
-------------
prev: <file:///~/notes/199707/970724#* Linux Notes>
next: <file:///~/notes/199708/970804#* Linux Notes>
I noticed today that a new version of e2compress was available,
and I've patched the 2.0.30 kernel source but haven't compiled it
yet.
I've been experimenting with the color-syntax-highlighting version of nedit
4.03 lately; it has a nifty dialog-box interface for creating and modifying
modes. Easier than LISP! <hr>
<p>The first entry,<i>Today</i>, contains nothing; it just serves as a link to
move from the current notes file to either the previous day's file or the next
day's. Any other word preceded by an asterisk and a space will serve as a
hyper-link to previous or next entries with the same subject. Type in a new
(or previously-used) subject with the asterisk and space, press enter, and the
dashed line and space will automatically be entered into the file; this format
is what the Perl indexing script uses to identify discrete entries.
<p>While in Emacs with a notes-mode file loaded, several keyboard commands
allow you to navigate between successive entries, either by day or by subject,
depending on where the cursor is when the keystroke is executed. A handy
key-binding for notes-mode is <code>Control-c n</code>, which will initialize a
new notes file for the day if the following LISP code is entered into your
<kbd>~.emacs</kbd> file:<br>
<code>(define-key global-map "^Cn" 'notes-index-todays-link)</code>.
The "<kbd>^C</kbd>" part is entered into the file by entering <kbd>Control-q
Control-c</kbd>.
<p>When Notes-Mode is installed a subdirectory is created in your home
directory called Notes. As you use the mode a subdirectory for each month is
created as well as a subdirectory under each month's directory for each week
in the month. The individual note files, one for each day the mode is used,
are given numerical names; the format of the path and filename can be seen in
the above example.
<p>The ability to navigate among your notes is enabled by means of a Perl
script called <b>mkall</b>, which is intended to be run daily by <b>cron</b>.
<b>Mkall</b> in turn calls other Perl scripts which update the index file with
entries for any new notes you may have made. This system works well, making
good use of Linux's automation facilities. Once you have it set up you never
have to think about it again.
<p>While this mode is designed for an academic environment in which voluminous
notes are taken on a variety of subjects, it can also be useful for anyone who
wants to keep track of on-line notes. It could even be used as a means of
organizing diary or journal entries. The only disadvantage I've seen is that,
though the notes-files are ASCII text readable by any editor, the navigation
and hyper-linking features are only available from within Emacs. This is fine
if you use Emacs as your main editor but makes the package not too useful for
anyone else. XEmacs users are out of luck as well, as the package doesn't
work "out-of-the-box" with XEmacs. I imagine a skilled LISP hacker could
modify Notes-Mode for XEmacs; I've made some tentative attempts but without
success.
<center><h3>Availability</h3></center>
<p>The only source I've seen for this package is from the author's web page,
at this URL:<br>
<a href="http://gost.isi.edu/~johnh/SOFTWARE/NOTES_MODE/index.html">
http://gost.isi.edu/~johnh/SOFTWARE/NOTES_MODE/index.html</a>
<p>The documentation for Notes-Mode can be browsed on-line at this site if
you'd like to read more before trying it out.
<!--===================================================================-->
<P> <hr> <P>
<center>
<h5>Copyright © 1997, Larry Ayers <br>
Published in Issue 22 of the Linux Gazette, October 1997</h5>
</center>
<!--===================================================================-->
<P> <hr> <P>
<A HREF="./lg_toc22.html"><IMG ALIGN=BOTTOM SRC="../gx/indexnew.gif"
ALT="[ TABLE OF CONTENTS ]"></A>
<A HREF="../lg_frontpage.html"><IMG ALIGN=BOTTOM SRC="../gx/homenew.gif"
ALT="[ FRONT PAGE ]"></A>
<A HREF="./new_emacs.html"><IMG SRC="../gx/back2.gif"
ALT=" Back "></A>
<A HREF="./using_m4.html"><IMG SRC="../gx/fwd.gif" ALT=" Next "></A>
<P> <hr> <P>
<!--startcut ==========================================================-->
</BODY>
</HTML>
<!--endcut ============================================================-->
|