[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [OT] lisp func to write timestamp to buffer
From: |
Russell Adams |
Subject: |
Re: [Orgmode] [OT] lisp func to write timestamp to buffer |
Date: |
Thu, 29 Oct 2009 19:47:32 -0500 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Sorry, should CC the list:
;; Insert immediate timestamp
(define-key global-map (kbd "<f9>")
'(lambda () (interactive)
(when (eq major-mode 'org-mode)
(org-insert-time-stamp nil t t)
(insert "\n"))))
On Thu, Oct 29, 2009 at 05:29:06PM -0600, Marcelo de Moraes Serpa wrote:
> Hello list,
>
> Org uses a timestamp format like the following across all its functionality:
>
> [2009-10-29 Thu 17:14]
>
> I would like to be able to ouput this string whenever I'd like to a buffer,
> with the current timestamp, this is useful for example to timestamp notes
> inside an org file arbitrarily:
>
> * [2009-10-29 Thu 17:14
> Bla Bla Bla
>
> How could I do that? I searched for such function with apropos but couldn't
> find anything that fits.
>
> Thanks,
>
> Marcelo.
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
------------------------------------------------------------------
Russell Adams address@hidden
PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/
Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3