From: David Forrest <drf5n@mug.sys.virginia.edu>
Cc: <help-gnu-emacs@gnu.org>
Subject: Re: Journal package for Emacs?
Date: Sun, 8 Sep 2002 23:22:14 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.33.0209082312270.10457-100000@mug.sys.virginia.edu> (raw)
In-Reply-To: <jbadms3t66.fsf@analog.net>
On Mon, 9 Sep 2002, mike hardy wrote:
...
Mike asked about having the journal open and do a time stamp, and I
thought it might work with hooks, so I wrote this as a venture into
learning elisp. Is this good elisp?
(defun my-journal-hook ()
"Go to the bottom and insert a timestamp on journal files
Identified with the is-journal local variable thus:
-*- is-journal : t -*- "
(if (local-variable-p 'is-journal)
(progn (end-of-buffer) ( insert-current-time))
))
(add-hook 'find-file-hooks 'my-journal-hook)
;where insert-current-time is:
(defun insert-current-time ()
"Insert the Current Time in ISO 8601 mode"
(interactive)
(insert
(format-time-string "%Y-%m-%dT%T%z ") ; ISO8601
)
)
Dave
--
Dave Forrest drf5n@virginia.edu
(804)642-0662h (434)924-3954w http://mug.sys.virginia.edu/~drf5n/
next prev parent reply other threads:[~2002-09-09 3:22 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-07 14:20 Journal package for Emacs? mike hardy
2002-09-07 15:45 ` F. Xavier Noria
2002-09-07 16:02 ` David Forrest
2002-09-07 17:42 ` Thien-Thi Nguyen
2002-09-07 19:30 ` Kai Großjohann
2002-09-07 22:04 ` mike hardy
2002-09-08 20:26 ` Kai Großjohann
2002-09-09 0:17 ` mike hardy
2002-09-09 9:48 ` Francesco Scaglioni
2002-09-09 11:18 ` Galen Boyer
2002-09-09 22:23 ` mike hardy
2002-09-08 6:49 ` Sacha Chua
[not found] ` <mailman.1031467986.16594.help-gnu-emacs@gnu.org>
2002-09-08 20:26 ` Kai Großjohann
2002-09-09 0:22 ` mike hardy
2002-09-09 3:22 ` David Forrest [this message]
[not found] <mailman.1031541847.25738.help-gnu-emacs@gnu.org>
2002-09-09 14:49 ` Stefan Monnier <foo@acm.com>
2002-09-09 15:53 ` David Forrest
[not found] <mailman.1031586979.16781.help-gnu-emacs@gnu.org>
2002-09-09 16:40 ` Jochen Küpper
2002-09-09 17:05 ` David Forrest
2002-09-09 21:25 ` Kevin Rodgers
2002-09-09 22:10 ` Alex Schroeder
2002-09-10 16:07 ` Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.33.0209082312270.10457-100000@mug.sys.virginia.edu \
--to=drf5n@mug.sys.virginia.edu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).