From 7d60d894a7c6015566eaa1d728dd784e8565ac9e Mon Sep 17 00:00:00 2001 From: Lucius Hu Date: Fri, 5 Aug 2022 04:10:26 -0400 Subject: [PATCH] updated COPYRIGHT --- COPYRIGHT | 40 ++++++++++++++++++- core/core-funcs.el | 8 ++-- layers/+emacs/org/packages.el | 2 +- layers/+frameworks/svelte/funcs.el | 4 +- layers/+frameworks/vue/funcs.el | 4 +- layers/+lang/markdown/funcs.el | 2 +- layers/+spacemacs/spacemacs-defaults/funcs.el | 4 +- layers/+tools/shell/funcs.el | 2 +- 8 files changed, 52 insertions(+), 14 deletions(-) diff --git a/COPYRIGHT b/COPYRIGHT index 1c55c4fe9..9d5f72f28 100644 --- a/COPYRIGHT +++ b/COPYRIGHT @@ -168,4 +168,42 @@ copyright notices and license terms: IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE - SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file + SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +* A few code snippets are borrowed from Prelude + + Copyright © 2011-2022 Bozhidar Batsov and contributors. + + Distributed under the GNU General Public License, version 3 + +* Multiple code snippets from various users of Stack Exchange. + + Snippets from the following copyright holders are licensed under + CC BY-SA 3.0 and are used + under fair use doctrine: + + event-jr + itsjeyd + Jon Ericson + malabarba + phils + punchagan + Scott Weldon + Trey Jackson + + Snippets from the following copyright holders are licensed under + CC BY-SA 2.5 and are used + under fair use doctrine: + + Trey Jackson + +* Various code snippets are from Emacs Wiki, which we choose to receive the work + uner GNU Free Documentation License + + Copyright (c) 2022 Emacs Wiki. + Permission is granted to copy, distribute and/or modify this document + under the terms of the GNU Free Documentation License, Version 1.3 + or any later version published by the Free Software Foundation; + with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. + A copy of the license is included in the section entitled "GNU + Free Documentation License". \ No newline at end of file diff --git a/core/core-funcs.el b/core/core-funcs.el index ef9f3f774..60551fc7a 100644 --- a/core/core-funcs.el +++ b/core/core-funcs.el @@ -94,14 +94,14 @@ and its values are removed." (push (pop tail) result)) (nreverse result))) -;; Originally based on http://stackoverflow.com/questions/2321904/elisp-how-to-save-data-in-a-file +;; Originally based on https://stackoverflow.com/a/2322164 (defun spacemacs/dump-vars-to-file (varlist filename) "simplistic dumping of variables in VARLIST to a file FILENAME" (with-temp-file filename (spacemacs/dump-vars varlist (current-buffer)) (make-directory (file-name-directory filename) t))) -;; From http://stackoverflow.com/questions/2321904/elisp-how-to-save-data-in-a-file +;; From https://stackoverflow.com/a/2322164 (defun spacemacs/dump-vars (varlist buffer) "insert into buffer the setq statement to recreate the variables in VARLIST" (cl-loop for var in varlist do @@ -163,7 +163,7 @@ The buffer's major mode should be `org-mode'." (if (require 'space-doc nil t) (space-doc-mode) ;; Make ~SPC ,~ work, reference: - ;; http://stackoverflow.com/questions/24169333/how-can-i-emphasize-or-verbatim-quote-a-comma-in-org-mode + ;; https://stackoverflow.com/a/24173780 (setcar (nthcdr 2 org-emphasis-regexp-components) " \t\n") (org-set-emph-re 'org-emphasis-regexp-components org-emphasis-regexp-components) (setq-local org-emphasis-alist '(("*" bold) @@ -305,7 +305,7 @@ buffer." . (,feature . ,repl-func)) spacemacs-repl-list)) -;; http://stackoverflow.com/questions/11847547/emacs-regexp-count-occurrences +;; https://stackoverflow.com/a/11848341 (defun spacemacs/how-many-str (regexp str) (cl-loop with start = 0 for count from 0 diff --git a/layers/+emacs/org/packages.el b/layers/+emacs/org/packages.el index 496fc89ee..3a181d066 100644 --- a/layers/+emacs/org/packages.el +++ b/layers/+emacs/org/packages.el @@ -200,7 +200,7 @@ (setq org-export-async-init-file (concat dir "org-async-init.el"))) ;; Insert key for org-mode and markdown a la C-h k - ;; from SE endless http://emacs.stackexchange.com/questions/2206/i-want-to-have-the-kbd-tags-for-my-blog-written-in-org-mode/2208#2208 + ;; from SE https://emacs.stackexchange.com/a/2208 (defun spacemacs/insert-keybinding-org (key) "Ask for a key then insert its description. Will work on both org-mode and any mode that accepts plain html." diff --git a/layers/+frameworks/svelte/funcs.el b/layers/+frameworks/svelte/funcs.el index 5799bd5d5..c53c73d0e 100644 --- a/layers/+frameworks/svelte/funcs.el +++ b/layers/+frameworks/svelte/funcs.el @@ -74,10 +74,10 @@ (defun spacemacs//svelte-setup-editor-style () "such as indent rules comment style etc" - ;; https://stackoverflow.com/questions/36701024/how-can-i-indent-inline-javascript-in-web-mode + ;; https://stackoverflow.com/a/36725155 (setq web-mode-script-padding 0) (setq web-mode-style-padding 0) - ;; https://emacs.stackexchange.com/questions/27683/change-comment-style-in-web-mode + ;; https://emacs.stackexchange.com/a/27714 (add-to-list 'web-mode-comment-formats '("javascript" . "//"))) (defun spacemacs//svelte-setup-keybindings () diff --git a/layers/+frameworks/vue/funcs.el b/layers/+frameworks/vue/funcs.el index 5ae5025f8..7af03ae25 100644 --- a/layers/+frameworks/vue/funcs.el +++ b/layers/+frameworks/vue/funcs.el @@ -79,10 +79,10 @@ (defun spacemacs//vue-setup-editor-style () "such as indent rules comment style etc" - ;; https://stackoverflow.com/questions/36701024/how-can-i-indent-inline-javascript-in-web-mode + ;; https://stackoverflow.com/a/36725155 (setq web-mode-script-padding 0) (setq web-mode-style-padding 0) - ;; https://emacs.stackexchange.com/questions/27683/change-comment-style-in-web-mode + ;; https://emacs.stackexchange.com/a/27714 (add-to-list 'web-mode-comment-formats '("javascript" . "//"))) (defun spacemacs//vue-setup-keybindings () diff --git a/layers/+lang/markdown/funcs.el b/layers/+lang/markdown/funcs.el index 551467712..1e391a0aa 100644 --- a/layers/+lang/markdown/funcs.el +++ b/layers/+lang/markdown/funcs.el @@ -27,7 +27,7 @@ (mmm-mode 1))) ;; Insert key for org-mode and markdown a la C-h k -;; from SE endless http://emacs.stackexchange.com/questions/2206/i-want-to-have-the-kbd-tags-for-my-blog-written-in-org-mode/2208#2208 +;; Based on SE https://emacs.stackexchange.com/a/2208 (defun spacemacs/insert-keybinding-markdown (key) "Ask for a key then insert its description. Will work on both org-mode and any mode that accepts plain html." diff --git a/layers/+spacemacs/spacemacs-defaults/funcs.el b/layers/+spacemacs/spacemacs-defaults/funcs.el index 745100df6..dd7ffde18 100644 --- a/layers/+spacemacs/spacemacs-defaults/funcs.el +++ b/layers/+spacemacs/spacemacs-defaults/funcs.el @@ -1263,7 +1263,7 @@ containing the current file by the default explorer." (when (active-minibuffer-window) (select-window (active-minibuffer-window)))) -;; http://stackoverflow.com/a/10216338/4869 +;; https://stackoverflow.com/a/10216338 (defun spacemacs/copy-whole-buffer-to-clipboard () "Copy entire buffer to clipboard" (interactive) @@ -1307,7 +1307,7 @@ the right." (align-regexp start end complete-regexp group 1 t))) -;; Modified answer from http://emacs.stackexchange.com/questions/47/align-vertical-columns-of-numbers-on-the-decimal-point +;; Modified answer from https://emacs.stackexchange.com/a/48 (defun spacemacs/align-repeat-decimal (start end) "Align a table of numbers on decimal points and dollar signs (both optional)" (interactive "r") diff --git a/layers/+tools/shell/funcs.el b/layers/+tools/shell/funcs.el index 84b5d4163..f6c4f1e0c 100644 --- a/layers/+tools/shell/funcs.el +++ b/layers/+tools/shell/funcs.el @@ -247,7 +247,7 @@ is achieved by adding the relevant text properties." (switch-to-buffer "*shell*") (shell "*shell*")) -;; https://stackoverflow.com/questions/6837511/automatically-disable-a-global-minor-mode-for-a-specific-major-mode +;; https://stackoverflow.com/a/6839968 (defun spacemacs//inhibit-global-centered-cursor-mode () "Counter-act `global-centered-cursor-mode'." (add-hook 'after-change-major-mode-hook