Added snippets for Emacs

This commit is contained in:
Fabio Scotto di Santolo
2025-12-27 13:53:55 +01:00
parent 2d510d289c
commit db4f52a064
115 changed files with 814 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
#name: cdata
# --
<![CDATA[$0]]>

View File

@@ -0,0 +1,8 @@
#name : cha
# --
<chapter xml:id="t_${1:$(replace-regexp-in-string " " "_" (downcase text))}">
<title>${1:My Title}</title>
<para>
$0
</para>
</chapter>

View File

@@ -0,0 +1,7 @@
#name : dep
# --
<dependency>
<groupId>$1</groupId>
<artifactId>$2</artifactId>
<version>$0</version>
</dependency>

View File

@@ -0,0 +1,10 @@
#name : diary
# --
<!--#include virtual="/ssi/header.shtml" -->
<h1>$1</h1>
<div id="main">
<p>
$0
</p>
</div>
<!--#include virtual="/ssi/footer.shtml" -->

View File

@@ -0,0 +1,6 @@
#name : exclusion
# --
<exclusion>
<groupId>$1</groupId>
<artifactId>$2</artifactId>
</exclusion>$0

View File

@@ -0,0 +1,8 @@
#name : exclusions
# --
<exclusions>
<exclusion>
<groupId>$1</groupId>
<artifactId>$2</artifactId>
</exclusion>$0
</exclusions>

View File

@@ -0,0 +1,3 @@
#name : incvar
# --
<xi:include href="local-variables.ebk" xpointer="${1:l-product-um}"/>$0

View File

@@ -0,0 +1,10 @@
#name : list
# --
<itemizedlist>
<listitem>
<para>
$0
</para>
</listitem>
</itemizedlist>

View File

@@ -0,0 +1,4 @@
#name : listi
# --
<listitem><para>$0</para></listitem>

View File

@@ -0,0 +1,3 @@
#name : lit
# --
<literal>$0</literal>

View File

@@ -0,0 +1,5 @@
#name : ol with a li
# --
<ol>
<li>$0</li>
</ol>

View File

@@ -0,0 +1,5 @@
#name : para
# --
<para>
$0
</para>

View File

@@ -0,0 +1,4 @@
#name : prog
# --
<programlisting><![CDATA[$0
]]></programlisting>

View File

@@ -0,0 +1,5 @@
#name : insert a JS tag without src
# --
<script type="text/javascript">
$0
</script>

View File

@@ -0,0 +1,4 @@
#name : insert a JS tag with src
# --
<script type="text/javascript" src="${1:script.js}"></script>
$0

View File

@@ -0,0 +1,8 @@
#name : sec
# --
<section xml:id="t_${1:$(replace-regexp-in-string " " "_" (downcase text))}">
<title>${1:My Title}</title>
<para>
$0
</para>
</section>

View File

@@ -0,0 +1,5 @@
#name : ul with a li
# --
<ul>
<li>$0</li>
</ul>

View File

@@ -0,0 +1,3 @@
#name : varece
# --
<xi:include href="ece-global:global-variables.ebk" xpointer="g-engine" />

View File

@@ -0,0 +1,4 @@
#name : xlink
# --
<link xlink:href="${1:https://example.com}">$2</link>
$0