From 1e57434293f19c3e9126b0c8f5ab756bde60440d Mon Sep 17 00:00:00 2001 From: Riyyi Date: Fri, 26 Mar 2021 00:41:10 +0100 Subject: [PATCH] Add license notice snippet --- .config/emacs/snippets/c++-mode/.yas-parents | 1 + .config/emacs/snippets/cc-mode/license-notice | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .config/emacs/snippets/c++-mode/.yas-parents create mode 100644 .config/emacs/snippets/cc-mode/license-notice diff --git a/.config/emacs/snippets/c++-mode/.yas-parents b/.config/emacs/snippets/c++-mode/.yas-parents new file mode 100644 index 0000000..ce9828b --- /dev/null +++ b/.config/emacs/snippets/c++-mode/.yas-parents @@ -0,0 +1 @@ +cc-mode diff --git a/.config/emacs/snippets/cc-mode/license-notice b/.config/emacs/snippets/cc-mode/license-notice new file mode 100644 index 0000000..b0e02f9 --- /dev/null +++ b/.config/emacs/snippets/cc-mode/license-notice @@ -0,0 +1,21 @@ +# -*- mode: snippet -*- +# name: license-notice +# key: ln +# -- +/* + * Copyright (C) `(format-time-string "%Y")` ${1:Author} ${2:} + * + * This program 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 3 of the License, or + * (at your option) any later version. + * + * This program 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 this program. If not, see . + */ +$0 \ No newline at end of file