Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这样一个片段
# -*- mode: snippet -*- # name: test # key: test # condition: t # expand-env: ((yas/indent-line 'fixed) (yas/wrap-around-region 'nil)) # -- *** Expenses ""
将此代码段插入 org doc 后,光标位于下一行的开头。
如何将光标放在标题 *** Expenses "" 的字符串 "?Cursor" 内?
当存在时,光标最终会出现在占位符中$0。所以,片段主体应该是
$0
*** Expenses "$0"
顺便说一句,yas/...变量已过时,已被yas-...前缀替换,例如。yas-indent-line和yas-wrap-around-region。
yas/...
yas-...
yas-indent-line
yas-wrap-around-region