diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-09-28 16:28:22 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-09-28 16:28:53 +0100 |
commit | b71068309b7b5041fc48ec37ea23ff1b759b7d76 (patch) | |
tree | d914bf5cfa6769372c39894da2f4e9925cdb8750 /Emacs | |
parent | 92d0d9dc1cb61f3ae60320ddb01d243af5bc572d (diff) | |
download | dotfiles-b71068309b7b5041fc48ec37ea23ff1b759b7d76.tar.gz dotfiles-b71068309b7b5041fc48ec37ea23ff1b759b7d76.tar.bz2 dotfiles-b71068309b7b5041fc48ec37ea23ff1b759b7d76.zip |
(Emacs)~setup licensing as early as possible
This is so I can use it later on.
Diffstat (limited to 'Emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 25 | ||||
-rw-r--r-- | Emacs/.config/emacs/elisp/license.el | 2 |
2 files changed, 13 insertions, 14 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index b16c13b..14eefe4 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1117,6 +1117,19 @@ all snippets I've got. :config (yas-load-directory (no-littering-expand-etc-file-name "yasnippet/snippets"))) #+end_src +** Licensing +Loads [[file:elisp/license.el][license.el]] for inserting licenses. +Licenses are important for distribution and attribution to be defined clearly. +#+begin_src emacs-lisp +(use-package license + :straight nil + :load-path "elisp/" + :demand t + :general + (insert-leader + "l" #'+license/insert-copyright-notice + "L" #'+license/insert-complete-license)) +#+end_src * Small packages ** ISearch ISearch is the default incremental search application in Emacs. I use @@ -2327,18 +2340,6 @@ keymaps. "[" #'le-thesaurus-get-synonyms "]" #'le-thesaurus-get-antonyms)) #+end_src -** Licensing -Loads [[file:elisp/license.el][license.el]] for inserting licenses. -#+begin_src emacs-lisp -(use-package license - :straight nil - :load-path "elisp/" - :defer t - :general - (insert-leader - "l" #'+license/insert-copyright-notice - "L" #'+license/insert-complete-license)) -#+end_src * Programming packages Packages that help with programming in general, providing IDE like capabilities. diff --git a/Emacs/.config/emacs/elisp/license.el b/Emacs/.config/emacs/elisp/license.el index cb48e47..f964f6c 100644 --- a/Emacs/.config/emacs/elisp/license.el +++ b/Emacs/.config/emacs/elisp/license.el @@ -425,9 +425,7 @@ For more information, please refer to <https://unlicense.org>"))) +license/license-choice) "Unlicense"))) (insert (format "Copyright (C) %s %s - You may distribute and modify this code under the terms of the %s license. - You should have received a copy of the %s license with this file. If not, please write to: %s." (format-time-string "%Y") user-full-name |