copyright.el 1.1 KB

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