Created
October 15, 2018 12:16
-
-
Save grahamc/4268709feefd8425361a56f76e516897 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /home/grahamc/.emacs.d/snippets/nxml-mode/example | |
# -*- mode: snippet -*- | |
# name: example | |
# key: example | |
# -- | |
<example xml:id="function-library-lib.$1-example"> | |
<title>$2</title> | |
<programlisting><![CDATA[ | |
$3 | |
]]></programlisting> | |
</example> | |
$ cat /home/grahamc/.emacs.d/snippets/nxml-mode/function | |
# -*- mode: snippet -*- | |
# name: function | |
# key: function | |
# -- | |
<section xml:id="function-library-lib.$1"> | |
<title><function>lib.$1</function></title> | |
<subtitle><literal>$2</literal></subtitle> | |
<xi:include href="./locations.xml" xpointer="lib.$1" /> | |
<para>$3</para> | |
<variablelist> | |
$4 | |
</variablelist> | |
$5 | |
</section> | |
$ cat /home/grahamc/.emacs.d/snippets/nxml-mode/library | |
# -*- mode: snippet -*- | |
# name: library | |
# key: library | |
# -- | |
<section> | |
<title>$1 functions</title> | |
$2 | |
</section> | |
$ cat /home/grahamc/.emacs.d/snippets/nxml-mode/nix-deprecated-option | |
# -*- mode: snippet -*- | |
# name: nix-deprecated-option | |
# key: nix-deprecated-option | |
# -- | |
<varlistentry xml:id="conf-$1"> | |
<term><literal>$1</literal></term> | |
<listitem><para><emphasis>Deprecated:</emphasis> | |
<literal>$1</literal> is now an alias to | |
<xref linkend="conf-$2" />.</para></listitem> | |
</varlistentry> | |
$ cat /home/grahamc/.emacs.d/snippets/nxml-mode/parameter | |
# -*- mode: snippet -*- | |
# name: parameter | |
# key: parameter | |
# -- | |
<varlistentry> | |
<term> | |
<varname>$1</varname> | |
</term> | |
<listitem> | |
<para> | |
$2 | |
</para> | |
</listitem> | |
</varlistentry> | |
$ cat /home/grahamc/.emacs.d/snippets/nxml-mode/predicate | |
# -*- mode: snippet -*- | |
# name: predicate | |
# key: predicate | |
# -- | |
<varlistentry> | |
<term> | |
<varname>$1</varname> | |
</term> | |
<listitem> | |
<para> | |
<literal>$2</literal> | |
</para> | |
<para> | |
$3 | |
</para> | |
<variablelist> | |
$4 | |
</variablelist> | |
</listitem> | |
</varlistentry> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment