3

I have such a snippet

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

*** Expenses ""

After insert this snippet to org doc, the cursor is positioned at the head of next line.

How could place the cursion inside the string "?Cursor" of heading *** Expenses ""?

AbstProcDo
  • 19,953
  • 19
  • 81
  • 138

1 Answers1

4

The cursor ends up in the placeholder $0 when present. So, the snippet body should be

*** Expenses "$0"

BTW, the yas/... variables are obsolete, having been replaced by yas-... prefixes, eg. yas-indent-line and yas-wrap-around-region.

Rorschach
  • 31,301
  • 5
  • 78
  • 129