From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mario Lang Newsgroups: gmane.emacs.help Subject: Re: inserting date and time at the cursor location Date: Fri, 11 Oct 2002 12:14:23 GMT Organization: delYsid CyberMedia Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87fzvd18ax.fsf@lexx.delysid.org> References: <3d9aee7f$0$15412$3b214f66@aconews.univie.ac.at> <65wkkzdz.fsf@ID-23066.news.dfncis.de> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1034347448 6530 127.0.0.1 (11 Oct 2002 14:44:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 11 Oct 2002 14:44:08 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18011K-0001gx-00 for ; Fri, 11 Oct 2002 16:44:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17zynY-00068x-00; Fri, 11 Oct 2002 08:21:44 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!news-hub.siol.net!newsfeed.eunet.at!newsfeed.austria.eu.net!newsrouter.chello.at!news.chello.at.POSTED!53ab2750!not-for-mail Original-Followup-To: comp.emacs Original-Newsgroups: comp.emacs.xemacs,gnu.emacs.help,gnu.emacs.gnus X-Face: #{U(u[E+u(XLt(Fzy^$\*@|~Op>;RH\Ff0gJmj>d/,E`SdhiT|GvS"x8J)&RXP@_r8o\;W+ "n|c..jN7_r:3AZZXUylgIc.w_TGBCWNS8.^Fo<]Mwl-[(xVfz(>#*]HT7Kjm.0<"2J]npj?_ig&%X 5Un,^Rie4K9b'j?l^Utlpa7>~0%GF0%[Dyt=f)oD:K4s81Hs9'GH0\kP+3hNtF-D List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:2474 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2474 Clemens Fischer writes: > David Kastrup writes: > >> You could also use >> C-u M-! date RET > > ok, how do i bind this to a key? Using keyboard macros for instance: C-x ( C-u M-! date RET C-x ) Now you can use C-x e to call the last kbd macro or M-x edit-kbd-macro RET C-x e to see the whole macro, being able to edit it and give it a name and keybinding. Use C-c C-c to save. -- CYa, Mario