If you mean $> in smart-snippet. It is not perfect. In some mode (e.g.
python-mode), the way to do indenting seems strange and indenting on a
snippet with overlays may totally confuse it. So this is not supported
in YASnippet.
However, there's a yas/after-exit-snippet-hook that maybe helpful. Say,
(add-hook 'yas/after-exit-snippet-hook
'(lambda ()
(indent-region yas/snippet-beg yas/snippet-end)))
may indent your snippet region after you finish your snippet. That is,
the indent is not done after you expand the snippet, but after you filled
$1 and jumped to $0. At that time, all overlays are removed, so there's
no chance to get Emacs confused.
I wish this is helpful.
>
> Thanks in advance,
> Hugo
> >
>
--
pluskid