Commit | Line | Data |
---|---|---|
9a397114 OP |
1 | ;;; copyright.el --- Insert a Guix copyright. |
2 | ||
3 | ;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com> | |
4 | ||
5 | ;; This file is part of GNU Guix. | |
6 | ||
7 | ;; GNU Guix is free software; you can redistribute it and/or modify | |
8 | ;; it under the terms of the GNU General Public License as published by | |
9 | ;; the Free Software Foundation, either version 3 of the License, or | |
10 | ;; (at your option) any later version. | |
11 | ||
12 | ;; GNU Guix is distributed in the hope that it will be useful, | |
13 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;; GNU General Public License for more details. | |
16 | ||
17 | ;; You should have received a copy of the GNU General Public License | |
18 | ;; along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 | ||
20 | ;;; Commentary: | |
21 | ||
22 | ;; This package provides skeleton to insert a copyright with `guix-copyright'. | |
23 | ||
24 | ;;; Code: | |
25 | ||
26 | (define-skeleton guix-copyright | |
27 | "Insert a copyright by $USER notice at cursor." | |
28 | "FULL_NAME <MAIL_ADDRESS>: " | |
29 | comment-start | |
30 | ";; Copyright © " `(format-time-string "%Y") " " | |
31 | (or (format "%s <%s>" user-full-name user-mail-address) str) | |
32 | comment-end) | |
33 | ||
34 | ;;; copyright.el ends here |