Reputation: 1925
I have installed yasnippet 0.8 from elpa on emacs 24 and I want to write a snippet that inserts this text into a LaTeX document (using AUCTeX):
\\
\vspace{10pt}
So I have this snippet:
# -*- mode: snippet -*-
# name: para
# key: para
# binding: direct-keybinding
# expand-env: ((some-var some-value))
# type: command
# --
\\\\
\\vspace{10pt}
but when I type para<TAB>
all that happens is that the text para
is removed. What am I doing wrong?
Upvotes: 0
Views: 207
Reputation: 28830
You're using some defaults that shouldn't be there. Change it to:
# -*- mode: snippet -*-
# name: para
# key: para
# --
\\\\
\\vspace{10pt}
Upvotes: 2