[Orgmode] Emacs/Org-mode question

2009-07-31 Thread Markus Heller

Hello all,

this might be a typical beginner question ...

I often use the sequence

C-. Ret C-- :

to create this:

- 2009-07-31 Fri:

where the date is today's date.

I'm sure there's a way to create a command for this, but I have no idea 
how.  I'd like to bind this sequence to something like C-c t or similar.


How do I do this?

Thanks and Cheers
Markus



___
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


Re: [Orgmode] Emacs/Org-mode question

2009-07-31 Thread Brian van den Broek

Markus Heller said unto the world at 31/07/09 05:39 PM:

Hello all,

this might be a typical beginner question ...

I often use the sequence

C-. Ret C-- :

to create this:

- 2009-07-31 Fri:

where the date is today's date.

I'm sure there's a way to create a command for this, but I have no idea 
how.  I'd like to bind this sequence to something like C-c t or similar.


How do I do this?

Thanks and Cheers
Markus


Hi Markus,

I have the following in my .emacs:

(defun date ()
  (interactive *)
(insert (format-time-string %Y-%m-%d %T (current-time
(global-set-key [f11] 'date)

This will at least get you started. See the documentation for 
format-time-string to season as suits.


Best,

Brian vdB


___
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