此问题关于编写yasnippet的模板,想要实现在别处使用这个模板时候,模板内能自动填充当前的时间。 请问我该如何编写这样的yasnippet模板呢?谢谢.
请提前搜一下
Backtick 里面可以写 elisp 函数
`(format-time-string "<%F %a>")`
https://www.gnu.org/software/emacs/manual/html_node/elisp/Time-Parsing.html
此问题关于编写yasnippet的模板,想要实现在别处使用这个模板时候,模板内能自动填充当前的时间。 请问我该如何编写这样的yasnippet模板呢?谢谢.
请提前搜一下
Backtick 里面可以写 elisp 函数
`(format-time-string "<%F %a>")`
https://www.gnu.org/software/emacs/manual/html_node/elisp/Time-Parsing.html