aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-03-02 14:10:09 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-03-02 14:10:09 +0100
commit9aa8e373cb8afa7786b6bffa18a47a348b64baf7 (patch)
tree388a07d65ff443d1d53f5e03f69b2d51e1c8f8d0
parentsnippets/ebuild-mode: add eapi.yas (diff)
downloademacs-ebuild-snippets-9aa8e373cb8afa7786b6bffa18a47a348b64baf7.tar.gz
emacs-ebuild-snippets-9aa8e373cb8afa7786b6bffa18a47a348b64baf7.tar.bz2
emacs-ebuild-snippets-9aa8e373cb8afa7786b6bffa18a47a348b64baf7.zip
snippets: add nxml-mode
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
-rw-r--r--snippets/nxml-mode/header.yas27
-rw-r--r--snippets/nxml-mode/longdescription.yas28
-rw-r--r--snippets/nxml-mode/maintainer.yas29
-rw-r--r--snippets/nxml-mode/pkgmetadata.yas28
-rw-r--r--snippets/nxml-mode/upstream.yas30
5 files changed, 142 insertions, 0 deletions
diff --git a/snippets/nxml-mode/header.yas b/snippets/nxml-mode/header.yas
new file mode 100644
index 0000000..582d231
--- /dev/null
+++ b/snippets/nxml-mode/header.yas
@@ -0,0 +1,27 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
+
+
+# name: header
+# key: header
+
+
+# --
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
diff --git a/snippets/nxml-mode/longdescription.yas b/snippets/nxml-mode/longdescription.yas
new file mode 100644
index 0000000..ddf6807
--- /dev/null
+++ b/snippets/nxml-mode/longdescription.yas
@@ -0,0 +1,28 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
+
+
+# name: longdescription
+# key: longdescription
+
+
+# --
+<longdescription>
+ $0
+</longdescription>
diff --git a/snippets/nxml-mode/maintainer.yas b/snippets/nxml-mode/maintainer.yas
new file mode 100644
index 0000000..c16fb5e
--- /dev/null
+++ b/snippets/nxml-mode/maintainer.yas
@@ -0,0 +1,29 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
+
+
+# name: maintainer
+# key: maintainer
+
+
+# --
+<maintainer type="${1:person}">
+ <email>$2</email>
+ <name>$3</name>
+</maintainer>
diff --git a/snippets/nxml-mode/pkgmetadata.yas b/snippets/nxml-mode/pkgmetadata.yas
new file mode 100644
index 0000000..90abc49
--- /dev/null
+++ b/snippets/nxml-mode/pkgmetadata.yas
@@ -0,0 +1,28 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
+
+
+# name: pkgmetadata
+# key: pkgmetadata
+
+
+# --
+<pkgmetadata>
+ $0
+</pkgmetadata>
diff --git a/snippets/nxml-mode/upstream.yas b/snippets/nxml-mode/upstream.yas
new file mode 100644
index 0000000..eb6bf1e
--- /dev/null
+++ b/snippets/nxml-mode/upstream.yas
@@ -0,0 +1,30 @@
+# -*- mode: snippet -*-
+
+
+# Copyright 2023 Gentoo Authors
+
+
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 2 of the License, or
+# (at your option) any later version.
+
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
+
+
+# name: upstream
+# key: upstream
+
+
+# --
+<upstream>
+ <bugs-to>$1</bugs-to>
+ <remote-id type="$2">$3</remote-id>
+ $0
+</upstream>