From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: Insert date and Time Date: Thu, 25 Feb 2010 07:49:27 -0700 Message-ID: References: <27714370.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1267109462 21972 80.91.229.12 (25 Feb 2010 14:51:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2010 14:51:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 25 15:50:57 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nkf3B-0006ak-UA for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Feb 2010 15:50:50 +0100 Original-Received: from localhost ([127.0.0.1]:38678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nkf3B-0006jf-Dt for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Feb 2010 09:50:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nkf28-00069u-G8 for help-gnu-emacs@gnu.org; Thu, 25 Feb 2010 09:49:44 -0500 Original-Received: from [140.186.70.92] (port=33730 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nkf27-00068t-Hf for help-gnu-emacs@gnu.org; Thu, 25 Feb 2010 09:49:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nkf26-0006Ie-Om for help-gnu-emacs@gnu.org; Thu, 25 Feb 2010 09:49:43 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:56897) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nkf26-0006IU-Is for help-gnu-emacs@gnu.org; Thu, 25 Feb 2010 09:49:42 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nkf1y-0005q2-W9 for help-gnu-emacs@gnu.org; Thu, 25 Feb 2010 15:49:35 +0100 Original-Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Feb 2010 15:49:34 +0100 Original-Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Feb 2010 15:49:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) In-Reply-To: <27714370.post@talk.nabble.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72130 Archived-At: Tugello wrote: > Hello, > good morning to all,I'm newbie with emacs > my question is about how to insert current date and time, using a short key > combination instead to write they completely . > someone ave any suggestion ? (defun insert-current-time () "Insert the result of `current-time-string' at point." (interactive) (insert (current-time-string))) (global-set-key (kbd "C-c t") 'insert-current-time) -- Kevin Rodgers Denver, Colorado, USA