From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: ken Newsgroups: gmane.emacs.help Subject: Re: inserting date and time at the cursor location Date: Fri, 4 Oct 2002 00:46:41 -0400 (EDT) Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <3d9aee7f$0$15412$3b214f66@aconews.univie.ac.at> Reply-To: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1033707312 17080 127.0.0.1 (4 Oct 2002 04:55:12 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 4 Oct 2002 04:55:12 +0000 (UTC) Cc: 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 17xKUY-0004RJ-00 for ; Fri, 04 Oct 2002 06:55:10 +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 17xKUw-0006Ot-00; Fri, 04 Oct 2002 00:55:34 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17xKMH-0004HG-00 for help-gnu-emacs@gnu.org; Fri, 04 Oct 2002 00:46:37 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17xKMF-0004Gm-00 for help-gnu-emacs@gnu.org; Fri, 04 Oct 2002 00:46:36 -0400 Original-Received: from oh-northolmstead1-7-171.clvhoh.adelphia.net ([68.71.102.171] helo=heidegger.mousecar.net) by monty-python.gnu.org with esmtp (Exim 4.10) id 17xKME-0004GO-00 for help-gnu-emacs@gnu.org; Fri, 04 Oct 2002 00:46:34 -0400 Original-Received: from localhost (ken@localhost) by heidegger.mousecar.net (8.11.6/8.11.6) with ESMTP id g944kiS02391; Fri, 4 Oct 2002 00:46:48 -0400 X-Authentication-Warning: heidegger.mousecar.net: ken owned process doing -bs Original-Newsgroups: comp.emacs.xemacs,gnu.emacs.help,gnu.emacs.gnus X-X-Sender: Original-To: Guy-Armand Kamendje In-Reply-To: <3d9aee7f$0$15412$3b214f66@aconews.univie.ac.at> Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: 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:2210 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:2210 Here's some elisp which does them separately... what I use: (defun now () "Insert string for the current time formatted like '2:34 PM'." (interactive) ; permit invocation in minibuffer (insert (format-time-string "%-I:%M %p")) ) (defun today () "Insert string for today's date nicely formatted in American style, e.g. Sunday, September 17, 2000." (interactive) ; permit invocation in minibuffer (insert (format-time-string "%A, %B %e, %Y")) ) Put these in a file in your emacs path. Do "M-x today" or "M-x now" to invoke. Also, it should be obvious how to integrate the two. hth, ken -- AMD crashes? See http://cleveland.lug.net/~ken/amd-problem/. Spake Guy-Armand Kamendje at 15:03 (UTC+0200) on Wed, 2 Oct 2002: = Hi, = Is there a way to let xemacs insert the current date and time at the actual = cursor location? = Thanks for any hint = Guy = = = _______________________________________________ = Help-gnu-emacs mailing list = Help-gnu-emacs@gnu.org = http://mail.gnu.org/mailman/listinfo/help-gnu-emacs =