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

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

Re: inserting date and time at the cursor location


From: A. Tsakiris
Subject: Re: inserting date and time at the cursor location
Date: 13 Oct 2002 10:25:19 -0400
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.6

> (defun jh-insert-current-time ()
>   (interactive)
>   (insert (current-time-string)))
> 
> Then do `M-x jh-insert-current-time' or bind it to some key sequence.

  > ok, how do i bind this to a key?
  > 

Try

(global-set-key (kbd "C-c d") 'jh-insert-current-date)

in your .emacs file.  This will bind the function to the key
sequence C-c d.

-- 
A. Tsakiris


reply via email to

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