[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Inserting date
From: |
Drew Adams |
Subject: |
RE: Inserting date |
Date: |
Sat, 28 Feb 2009 22:18:15 -0800 |
> > Can you tell me how can I insert the today's date in a text file,
> > please? (something like fields in traditional word processors).
>
> (global-set-key "\C-cid" (lambda() (interactive) (insert
> (format-time-string "%a %Y-%m-%d - %l:%M %p"))))
>
> then you can use that key combo to insert day date - time. Strip out
> some of the formating specs if you don't need them or change
> their order if you like.
These might help too (just some Emacs wiki search results for "insert date"):
http://www.emacswiki.org/emacs/InsertingTodaysDate
http://www.emacswiki.org/emacs/InsertAnyDate
http://www.emacswiki.org/emacs/InsertDate
- RE: Inserting date,
Drew Adams <=