;;; spdx.el --- Insert SPDX license and copyright headers -*- lexical-binding: t -*-
;; Copyright (C) 2020, 2021, 2022 Zhiwei Chen
;; SPDX-License-Identifier: GPL-3.0-or-later
;; Author: Zhiwei Chen <condy0919@gmail.com>
;; Keywords: license, tools
;; URL: https://github.com/condy0919/spdx.el
;; Version: 0.1.0
;; Package-Requires: ((emacs "24.4"))
;; 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 <http://www.gnu.org/licenses/>.
;;; Commentary:
;; # spdx.el
;; `spdx.el` provides SPDX license header and copyright insertion.
;; ## Installation
;; Put `spdx.el` in your Emacs system. Add the following to your `.emacs`:
;; ```elisp
;; (require 'spdx)
;; (define-key prog-mode-map (kbd "C-c i l") #'spdx-insert-spdx)
;; ```
;; Or Use [use-package](https://github.com/jwiegley/use-package) with
;; [straight.el](https://github.com/raxod502/straight.el)
;; ``` emacs-lisp
;; (use-package spdx
;; :ensure t
;; :straight (:host github :repo "condy0919/spdx.el")
;; :bind (:map prog-mode-map
;; ("C-c i l" . spdx-insert-spdx))
;; :custom
;; (spdx-copyright-holder 'auto)
;; (spdx-project-detection 'auto))
;; ```
;; Then you can press `C-c i l` to trigger `spdx-insert-spdx`
;; Or manually run:
;; M-x spdx-insert-spdx
;; Then, `spdx.el` will ask you to select a license. It's done by
;; `completing-read'.
;; After that, the license header will be written. An example follows.
;; `;; SPDX-License-Identifier: AGPL-1.0-only`
;; ## Customization
;; - `spdx-copyright-holder'
;; - `spdx-copyright-sign'
;; - `spdx-project-detection'
;; - `spdx-ignore-deprecated'
;;; Code:
;; Stole from `doom-modeline`
;; Silence undefined warning
;;;###autoload
;;;###autoload
;;;###autoload
;;;###autoload
;;;###autoload
;;;###autoload
;;; spdx.el ends here