Is there a way to easily insert a snippet when a certain keybinding is activated? AFAICT, official documentation suggests setting: #binding: directive, smth like this:
#name : <p>...</p>
#binding: C-c C-c C-m
# --
<p>`(when yas/prefix "\n")`$0`(when yas/prefix "\n")`</p>
It's not working for me, however. Any ideas on what may cause the problem?
EDIT
I'm using GNU Emacs 24.0.93.1 with Yasnippet grabbed from GitHub repo.
C-c C-cis generally taken by major modes, IMO one better not use it as a prefixhtml-mode(actuallynxhtml-mode). @Thomas,describe-keyis interrupted afterC-c C-c, but nothing happens if I change the binding. @kindahero, yes I'm aware of that, this stuff is from official Yasnippet page.