Emacs: Add template for metadata.xml.

This commit is contained in:
tastytea 2020-12-07 16:31:46 +01:00
parent fb15524b93
commit e155efa891
2 changed files with 17 additions and 2 deletions

12
auto-insert/metadata.xml Normal file
View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo@tastytea.de</email>
<name>${1:$$(yas-choose-value '("Ronny (tastytea) Gutbrod" "tastytea"))}</name>
</maintainer>
<upstream>
<doc>$2</doc>
<bugs-to>$3</bugs-to>
</upstream>
</pkgmetadata>

View File

@ -1,6 +1,6 @@
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-12-06T12:10:55+0100>
;; Time-stamp: <2020-12-07T16:03:09+0100>
;;; Commentary:
@ -209,7 +209,10 @@
["manpage.adoc" my/autoinsert-yas-expand]))
(add-to-list
'auto-insert-alist '(("\\.user.js$" . "Userscript") .
["user.js" my/autoinsert-yas-expand])))
["user.js" my/autoinsert-yas-expand]))
(add-to-list
'auto-insert-alist '(("metadata\\.xml$" . "Gentoo pkg metadata") .
["metadata.xml" my/autoinsert-yas-expand])))
:hook (find-file . auto-insert))
;; Better search.