mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 11:30:23 +10:00
Moving to Doom Emacs!
This commit is contained in:
21
.emacs.d/modules/lang/web/autoload/evil.el
Normal file
21
.emacs.d/modules/lang/web/autoload/evil.el
Normal file
@@ -0,0 +1,21 @@
|
||||
;;; lang/html/autoload/evil.el -*- lexical-binding: t; -*-
|
||||
;;;###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)
|
||||
"Encodes HTML entities in INPUT or the selected region."
|
||||
(interactive "<r><a>")
|
||||
(cond (input
|
||||
(insert (+web-encode-entities input)))
|
||||
((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)
|
||||
"Decodes HTML entities in INPUT or the selected region."
|
||||
(interactive "<r><a>")
|
||||
(cond (input
|
||||
(insert (+web-decode-entities input)))
|
||||
((and beg end)
|
||||
(+web/decode-entities-region beg end))))
|
||||
|
||||
Reference in New Issue
Block a user