updated COPYRIGHT

This commit is contained in:
Lucius Hu 2022-08-05 04:10:26 -04:00
parent 2ec9614d5e
commit 7d60d894a7
No known key found for this signature in database
GPG Key ID: 7E474E82E29B5A7A
8 changed files with 52 additions and 14 deletions

View File

@ -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.
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* A few code snippets are borrowed from Prelude <https://github.com/bbatsov/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 <https://creativecommons.org/licenses/by-sa/3.0/> and are used
under fair use doctrine:
event-jr <https://stackoverflow.com/users/903943/event-jr>
itsjeyd <https://stackoverflow.com/users/1199226/itsjeyd>
Jon Ericson <https://emacs.stackexchange.com/users/2/jon-ericson>
malabarba <https://emacs.stackexchange.com/users/50/malabarba>
phils <https://stackoverflow.com/users/324105/phils>
punchagan <https://emacs.stackexchange.com/users/2465/punchagan>
Scott Weldon <https://stackoverflow.com/users/2747593/scott-weldon>
Trey Jackson <https://stackoverflow.com/users/6148/trey-jackson>
Snippets from the following copyright holders are licensed under
CC BY-SA 2.5 <https://creativecommons.org/licenses/by-sa/2.5/> and are used
under fair use doctrine:
Trey Jackson <https://stackoverflow.com/users/6148/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".

View File

@ -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

View File

@ -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."

View File

@ -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 ()

View File

@ -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 ()

View File

@ -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."

View File

@ -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")

View File

@ -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