|
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
[Prev in Thread] | Current Thread | [Next in Thread] |