0

我有这样一个片段

# -*- mode: snippet -*-
# name: test
# key: test
# condition: t
# expand-env: ((yas/indent-line 'fixed) (yas/wrap-around-region 'nil))
# --

*** Expenses ""

将此代码段插入 org doc 后,光标位于下一行的开头。

如何将光标放在标题 *** Expenses "" 的字符串 "?Cursor" 内?

4

1 回答 1

3

当存在时,光标最终会出现在占位符中$0。所以,片段主体应该是

*** Expenses "$0"

顺便说一句,yas/...变量已过时,已被yas-...前缀替换,例如。yas-indent-lineyas-wrap-around-region

于 2019-09-10T10:13:21.630 回答