tags:

views:

74

answers:

1

Hello, I would like to insert dates in an emacs buffer like I do in org-mode (C-c .), while in a mode other than org. Is there a minor mode for this? Calendar does not do what I need, since I can "+1" a day, for instance. Thanks.

+6  A: 

There isn't a minor mode, but you can do this:

(global-set-key (kbd "C-c .") 'org-time-stamp)

Or define the key in whatever mode/keymap you want. Note, this keybinding might conflict with key bindings in other modes. Key bindings reserved for users are C-c x (where x is any lower or upper case letter).

Trey Jackson
don't forget to `(require 'org)` first though
cobbal
I love emacs. Thank you for this.
Dervin Thunk