:feature was a "catch-all" category. Many of its modules fit better in other categories, so they've been moved: - feature/debugger -> tools/debugger - feature/evil -> editor/evil - feature/eval -> tools/eval - feature/lookup -> tools/lookup - feature/snippets -> editor/snippets - feature/file-templates -> editor/file-templates - feature/workspaces -> ui/workspaces More potential changes in the future: - A new :term category for terminal emulation modules (eshell, term and vterm). - A new :os category for modules dedicated to os-specific functionality. The :tools macos module would fit here, but so would modules for nixos and arch. - A new :services category for web-service integration, like wakatime, twitter, elfeed, gist and pastebin services.
21 lines
834 B
EmacsLisp
21 lines
834 B
EmacsLisp
;;; 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 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 the selected region."
|
|
(interactive "<r><a>")
|
|
(cond (input
|
|
(insert (+web-decode-entities input)))
|
|
((and beg end)
|
|
(+web/decode-entities-region beg end))))
|
|
|