0

This is my snippent:

foo ($1)
$0

Where I activate it with indent and touch 'arg<Tab>bar' I want like this:

  foo (x)
  bar

But I got this:

  foo (x)
bar

My yas-indent-line is fixed. Emacs 24.2.1 Yasnippet 0.8.0 (20130218)

Astas Raigh
  • 31
  • 1
  • 4

1 Answers1

1

This is functional snippet:

# key: snip
# name: foo
# expand-env: ((yas/indent-line t))
# --
foo ($1)
$0`()`$>
Astas Raigh
  • 31
  • 1
  • 4