From 0dead0b9f3ab8d14fb32ddef73f693341f3110c2 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Tue, 6 Feb 2018 10:43:29 -0800 Subject: [PATCH] add more snippet rules --- emacs_el/snippets/latex-mode/frame | 7 +++ emacs_el/snippets/message-mode/unsub | 20 ++++++++ emacs_el/snippets/perl-mode/perlmodule | 55 ++++++++++++++++++++++ emacs_el/snippets/spamassassin-mode/header | 7 +++ 4 files changed, 89 insertions(+) create mode 100644 emacs_el/snippets/latex-mode/frame create mode 100644 emacs_el/snippets/message-mode/unsub create mode 100644 emacs_el/snippets/perl-mode/perlmodule create mode 100644 emacs_el/snippets/spamassassin-mode/header diff --git a/emacs_el/snippets/latex-mode/frame b/emacs_el/snippets/latex-mode/frame new file mode 100644 index 0000000..fe452bf --- /dev/null +++ b/emacs_el/snippets/latex-mode/frame @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: frame +# key: frame +# -- +\begin{frame} +$0 +\end{frame} \ No newline at end of file diff --git a/emacs_el/snippets/message-mode/unsub b/emacs_el/snippets/message-mode/unsub new file mode 100644 index 0000000..7dd0c1c --- /dev/null +++ b/emacs_el/snippets/message-mode/unsub @@ -0,0 +1,20 @@ +# -*- mode: snippet -*- +# name: unsub +# key: unsub +# -- +I have caused an unsubscription cookie to be sent to your address. +Please follow the instructions in it to complete the unsubscription +process. + +In the future, if you want to unsubscribe and have forgotten the +address you subscribed from, the recipient-address is coded into the +Return-Path. + +Example: + +Return-Path: + ^^^^^^^^^^^^^^ + +Even if you are unable to send mail using that address, if you receive +at that address, you can still unsubscribe using the web form; +https://www.debian.org/MailingLists/unsubscribe diff --git a/emacs_el/snippets/perl-mode/perlmodule b/emacs_el/snippets/perl-mode/perlmodule new file mode 100644 index 0000000..230eeab --- /dev/null +++ b/emacs_el/snippets/perl-mode/perlmodule @@ -0,0 +1,55 @@ +# -*- mode: snippet -*- +# name: perlmodule +# key: perlmodule +# expand-env: ((yas-indent-line -1)) +# -- +# This module is part of ${1:the_project}, and +# is released under the terms of the GPL version 3, or any later +# version (at your option). See the file README and COPYING for more +# information. +# Copyright `(format-time-string "%Y")` by Don Armstrong . + +package ${2:THEPACKAGE}; + +=head1 NAME + +$2 -- $3 + +=head1 SYNOPSIS + +C + +=head1 DESCRIPTION + +$4 + +=cut + +use warnings; +use strict; +use vars qw($VERSION $DEBUG %EXPORT_TAGS @EXPORT_OK @EXPORT); +use base qw(Exporter); + +BEGIN{ + $VERSION = '0.1'; + $DEBUG = 0 unless defined $DEBUG; + + @EXPORT = (); + %EXPORT_TAGS = (#a => [qw()], + ); + @EXPORT_OK = (); + Exporter::export_ok_tags(keys %EXPORT_TAGS); + $EXPORT_TAGS{all} = [@EXPORT_OK]; + +} + +$0 + +1; + + +__END__ +# Local Variables: +# indent-tabs-mode: nil +# cperl-indent-level: 4 +# End: diff --git a/emacs_el/snippets/spamassassin-mode/header b/emacs_el/snippets/spamassassin-mode/header new file mode 100644 index 0000000..768263d --- /dev/null +++ b/emacs_el/snippets/spamassassin-mode/header @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: header ... ... +# key: header +# -- +header ${1:RULE_NAME} ${2:Subject} =~ /$3/i +describe $1 ${4} +score $1 ${5:1.0} \ No newline at end of file -- 2.39.2