Updating Doom Emacs.

This commit is contained in:
Derek Taylor
2020-06-19 22:43:40 -05:00
parent 0f664d532a
commit a5c86c514a
453 changed files with 13527 additions and 12455 deletions

View File

@@ -2,20 +2,25 @@
;;;###if (featurep! :editor evil)
;;;###autoload (autoload '+web:encode-html-entities "lang/web/autoload/evil" nil t)
(evil-define-operator +web:encode-html-entities (beg end &optional input)
(evil-define-operator +web:encode-html-entities (beg end &optional bang input)
"Encodes HTML entities in INPUT or the selected region."
(interactive "<r><a>")
(interactive "<r><!><a>")
(cond (input
(insert (+web-encode-entities input)))
(let ((result (+web-encode-entities input)))
(if bang
(kill-new result)
(insert result))))
((and beg end)
(+web/encode-entities-region beg end))))
;;;###autoload (autoload '+web:decode-html-entities "lang/web/autoload/evil" nil t)
(evil-define-operator +web:decode-html-entities (beg end &optional input)
(evil-define-operator +web:decode-html-entities (beg end &optional bang input)
"Decodes HTML entities in INPUT or the selected region."
(interactive "<r><a>")
(interactive "<r><!><a>")
(cond (input
(insert (+web-decode-entities input)))
(let ((result (+web-decode-entities input)))
(if bang
(kill-new result)
(insert result))))
((and beg end)
(+web/decode-entities-region beg end))))

View File

@@ -2,6 +2,7 @@
(defvar +web-entities-list
[["&amp;" "&"] ["&nbsp;" " "] ["&ensp;" ""] ["&emsp;" ""] ["&thinsp;" ""]
["&lt;" "<"] ["&gt;" ">"]
["&rlm;" ""] ["&lrm;" ""] ["&zwj;" ""] ["&zwnj;" ""]
["&iexcl;" "¡"] ["&cent;" "¢"] ["&pound;" "£"] ["&curren;" "¤"] ["&yen;" "¥"]
["&brvbar;" "¦"] ["&sect;" "§"] ["&uml;" "¨"] ["&copy;" "©"] ["&ordf;" "ª"]