Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 197 by
kawabata...@gmail.com: yas-after-exit-snippet-hook won't
run when it is specified in snippet file.
http://code.google.com/p/yasnippet/issues/detail?id=197
When I write the following snippet, as I want to run some buffer clean-up
code after executing the snippet,
> # -*- mode: snippet -*-
> # binding: C-c y r
> # expand-env: ((yas-after-exit-snippet-hook 'do-some-cleanup)))
> # --
> $1 ${1:$(some-complex-function text)}
It didn't run the `do-some-cleanup' function.
It works when I execute (setq yas-after-exit-snipped-hook 'do-some-cleanup)
Is there any way to run arbitary elisp code in editing buffer
after I finished expansion?