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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode



------------------------------------------------------------------
Russell Adams                            rlad...@adamsinfoserv.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to