title: How to restrict yasnippet expand in certain environment only in emacs, for writing latex
body: <p>everyone. I was using emacs to write LaTeX and I want to use yasnippet to expand &quot;FF&quot; as &quot;Fargues-Fontaine&quot; only in <strong>non-math</strong> environment, that is to say, not between &quot;$$&quot;, &quot;\[\]&quot; ,&quot;\begin{displaymath}...\end{displaymath}&quot;. The following is the unfinished yasnippet file:</p>
  <blockquote>
  <p># -- mode: snippet --</p>
  <p># name: Fargues-Fontaine</p>
  <p># key: FF</p>
  <p># condition: ??</p>
  <p># --</p>
  <p>Fargues-Fontaine</p>
  </blockquote>
  <p>I am not familiar with emacs lisp languages. I searched through websites, only to find that I may use &quot;# condition:&quot; to do something. Can anyone help me? Thanks a lot in advance.</p>