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.
我想在emacs缓冲区中插入日期,就像我在org-mode (C-c .)中那样,而在另一种模式下。这有一个小的模式吗?日历不做我需要做的事,因为我一天可以“+1”。谢谢。
1 个解决方案
#1
10
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).
或者在你想要的模式/键映射中定义键。注意,这个键绑定可能与其他模式中的键绑定冲突。为用户保留的键绑定是C-c x(其中x为小写字母)。
#1
10
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).
或者在你想要的模式/键映射中定义键。注意,这个键绑定可能与其他模式中的键绑定冲突。为用户保留的键绑定是C-c x(其中x为小写字母)。