help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: inserting date and time at the cursor location


From: David Kastrup
Subject: Re: inserting date and time at the cursor location
Date: 02 Oct 2002 17:37:27 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Jesper Harder <harder@myrealbox.com> writes:

> "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?
> 
> (defun jh-insert-current-time ()
>   (interactive)
>   (insert (current-time-string)))
> 
> Then do `M-x jh-insert-current-time' or bind it to some key sequence.

You could also use
C-u M-! date RET

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: David.Kastrup@t-online.de


reply via email to

[Prev in Thread] Current Thread [Next in Thread]