From: Josh Huber <huber@alum.wpi.edu>
Subject: Re: inserting date and time at the cursor location
Date: Wed, 02 Oct 2002 11:10:27 -0400 [thread overview]
Message-ID: <87it0kop0c.fsf@mail.paradoxical.net> (raw)
In-Reply-To: <3d9aee7f$0$15412$3b214f66@aconews.univie.ac.at>
"Guy-Armand Kamendje" <kguy@gmx.at> writes:
> Is there a way to let xemacs insert the current date and time at the
> actual cursor location?
Probably, but here is some elisp to do it:
(insert (format-time-string "%c"))
You can bind this to a key like:
(defun jmh::insert-time-and-date ()
(interactive)
(insert (format-time-string "%c")))
(global-set-key (kbd "A-d") 'jmh::insert-time-and-date)
Which would use Alt-d as the keybinding.
--
Josh Huber
next parent reply other threads:[~2002-10-02 15:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3d9aee7f$0$15412$3b214f66@aconews.univie.ac.at>
2002-10-02 15:10 ` Josh Huber [this message]
[not found] ` <m33croeu49.fsf@defun.localdomain>
2002-10-02 15:37 ` David Kastrup
[not found] ` <x5fzvoam2w.fsf@tupik.goethe.zz>
[not found] ` <65wkkzdz.fsf@ID-23066.news.dfncis.de>
2002-10-11 12:14 ` Mario Lang
2002-10-04 4:46 ` ken
2002-10-02 13:03 Guy-Armand Kamendje
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87it0kop0c.fsf@mail.paradoxical.net \
--to=huber@alum.wpi.edu \
--cc=huber+dated+1034003240.f653c9@alum.wpi.edu \
/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 NNTP newsgroup(s).