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.
views:
74answers:
1
+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
2010-04-06 19:23:30
don't forget to `(require 'org)` first though
cobbal
2010-04-06 19:27:25
I love emacs. Thank you for this.
Dervin Thunk
2010-04-06 19:49:13