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: ftrw
Subject: Re: inserting date and time at the cursor location
Date: 02 Oct 2002 20:13:57 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Clemens Fischer <address@hidden> writes:

> David Kastrup <address@hidden> writes:
> 
> > You could also use
> > C-u M-! date RET
> 
> ok, how do i bind this to a key?
> 
> clemens

C-x (                                    (define macro)
C-u M-! date RET                         (your macro)
C-x )                                    (end macro)
M-x name-last-kbd-macro RET insert-date  (name macro)
C-x C-f ~/.emacs
M-x insert-kbd-macro RET insert-date     (insert macro into .emacs)

Now add this line underneath your new macro (choose
whatever key you want to bind it to):

(global-set-key [M-f4] 'insert-date)



reply via email to

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