emacs - 如何获取日历提示并插入日期

标签 emacs elisp

我正在编写一个以两个日期作为参数的函数。 (类似于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/

相关文章:

r - Emacs ESS 模式 TAB 停止缩进

emacs - 如何让emacs允许在不同的帧中打开一个缓冲区?

string - elisp 中的转义字符串

python - 如何抑制 python 模式的输出缓冲区?

css-mode 从 Emacs 中的前缀属性中删除破折号

Emacs ECB 方法窗口未更新

emacs - 用普通字体覆盖粗体字体

emacs - 如何在 Windows 上为 Emacs 23.1.50 编译 CEDET 1.0pre7 编译?

emacs - 调试 Emacs Lisp 主要模式

emacs - 在 Emacs 中为 tex-mode 修改 Alt+f