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

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

Re: Insert date and Time


From: Kevin Rodgers
Subject: Re: Insert date and Time
Date: Thu, 25 Feb 2010 07:49:27 -0700
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

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





reply via email to

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