我正在编写一个以两个日期作为参数的函数。 (类似于2016-8-1)
我想从漂亮的 emacs 日历 View 中获取日期。
(defun my-fun (date1 date2)
(setq date1 (get-date-from-calendar))
)
我知道在组织模式下有
C-c . (org-time-stamp)
但是当在 elisp 代码中使用时,此函数需要参数。
有什么想法吗?
最佳答案
如果您想避免提示用户,该参数用于传递前缀选项。你可以只传递 nil ,它应该可以工作 (org-time-stamp nil)
关于emacs - 如何获取日历提示并插入日期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40613715/