From da0fe33fcd5502880fbfd7414eca1f634e7ba409 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 21 Dec 2020 16:18:33 +0100 Subject: [PATCH] Emacs: Add package spdx. --- init.d/programming/common.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.d/programming/common.el b/init.d/programming/common.el index 4f87633..fe7f9fc 100644 --- a/init.d/programming/common.el +++ b/init.d/programming/common.el @@ -245,5 +245,12 @@ year if mode is derived from prog-mode." :straight (:type built-in) :hook (diff-mode . (lambda () (setq-local my/reformat-save nil)))) +;; Insert SPDX license identifiers. +(use-package spdx + :custom((spdx-copyright-holder 'auto) + (spdx-project-detection 'auto)) + :bind (:map prog-mode-map + ("C-c i l" . spdx-insert-spdx))) + (provide 'programming/common) ;;; common.el ends here