From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Insert date and Time Date: Thu, 25 Feb 2010 16:26:24 -0600 Message-ID: <6tCdnR2CrLaSZBvWnZ2dnUVZ_hidnZ2d@sysmatrix.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1267137711 3538 80.91.229.12 (25 Feb 2010 22:41:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Feb 2010 22:41:51 +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 23:41:48 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 1NkmOx-0007S0-FA for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Feb 2010 23:41:47 +0100 Original-Received: from localhost ([127.0.0.1]:37931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkmOw-00078l-NC for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Feb 2010 17:41:46 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 25 Feb 2010 16:26:22 -0600 User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) Original-Newsgroups: gnu.emacs.help In-Reply-To: X-No-Archive: yes Original-Lines: 24 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 12.73.129.69 Original-X-Trace: sv3-TlWJIpSC4JYeUVL0eEpsigmOtxu/nL5BasurHTCCOwVWWl4DtHoxQXilvtNT9/z8ZorWRwraJp1K7Cn!YseCc+thzNnSdT+MVIFxucyWTa+CwC9Z/jOPxoEeM5j54r9tMWYni9v27jzTnxSu3uz3rDkEX57C!HjBE2ndWGPiOkCd/NZZrsPLumkkcPw== Original-X-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 Original-Xref: news.stanford.edu gnu.emacs.help:177104 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 X-Gmane-Expiry: 2010-03-11 Xref: news.gmane.org gmane.emacs.help:72142 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 ? > thanks in advance Also, if you need only one time-stamp per file and it's acceptable to have this time stamp at the top of the buffer, you can put (add-hook 'write-file-hooks 'time-stamp) into the .emacs and then the line (or similar) ;; Time-stamp: "2010-02-19 12:15:41 userloginname" near the top every file you want time-stamped. The string part is formatted per variable 'time-stamp-format. Every time the file is saved this commented line will be updated. Ed