[Orgmode] [OT] lisp func to write timestamp to buffer

2009-10-29 Thread Marcelo de Moraes Serpa
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:

Re: [Orgmode] [OT] lisp func to write timestamp to buffer

2009-10-29 Thread Russell Adams
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

Re: [Orgmode] [OT] lisp func to write timestamp to buffer

2009-10-29 Thread Nick Dokos
Marcelo de Moraes Serpa celose...@gmail.com 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

Re: [Orgmode] [OT] lisp func to write timestamp to buffer

2009-10-29 Thread Russell Adams
On Thu, Oct 29, 2009 at 10:44:39PM -0400, Nick Dokos wrote: Marcelo de Moraes Serpa celose...@gmail.com wrote: Assuming you are in an org buffer C-u C-c ! RET will insert an inactive time stamp (including the current time - that's the prefix argument): [2009-10-29 Thu 22:34]

Re: [Orgmode] [OT] lisp func to write timestamp to buffer

2009-10-29 Thread Nick Dokos
Russell Adams rlad...@adamsinfoserv.com wrote: The function I posted does the same as C-u C-c ! RET, just with a single key press. Yes - and it also avoids the distraction of popping up the calendar. Thanks, Nick ___ Emacs-orgmode mailing list