[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Insert date and Time
From: |
Uwe Siart |
Subject: |
Re: Insert date and Time |
Date: |
Tue, 02 Mar 2010 09:40:07 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (windows-nt) |
Tim Visher <tim.visher@gmail.com> writes:
> I use this function to insert a time stamp at point:
>
> (defun insert-time-stamp ()
> "Inserts a time stamp 'YYYY-MM-DD HH:MM AM/PM'"
> (interactive)
> (insert (format-time-string "%Y-%m-%d - %I:%M %p")))
Nice gimmick. To make it perfect I'd like insert-time-stamp to replace
region (if there is a region). How to achieve this? (insert "string")
does not replace region but inserts at point.
--
Uwe
- Re: Insert date and Time,
Uwe Siart <=