doomemacs/modules/lang/web/autoload/evil.el

22 lines
834 B
EmacsLisp
Raw Normal View History

;;; lang/html/autoload/evil.el -*- lexical-binding: t; -*-
;;;###if (featurep! :editor evil)
2017-02-19 18:57:16 -05:00
;;;###autoload (autoload '+web:encode-html-entities "lang/web/autoload/evil" nil t)
(evil-define-operator +web:encode-html-entities (beg end &optional input)
2017-02-19 18:57:16 -05:00
"Encodes HTML entities in the selected region."
(interactive "<r><a>")
(cond (input
(insert (+web-encode-entities input)))
2017-02-19 18:57:16 -05:00
((and beg end)
(+web/encode-entities-region beg end))))
2017-02-19 18:57:16 -05:00
;;;###autoload (autoload '+web:decode-html-entities "lang/web/autoload/evil" nil t)
(evil-define-operator +web:decode-html-entities (beg end &optional input)
2017-02-19 18:57:16 -05:00
"Decodes HTML entities in the selected region."
(interactive "<r><a>")
(cond (input
(insert (+web-decode-entities input)))
2017-02-19 18:57:16 -05:00
((and beg end)
(+web/decode-entities-region beg end))))
2017-02-19 18:57:16 -05:00