mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Refactor out s.el usage
This commit is contained in:
@ -18,8 +18,9 @@ character.")
|
||||
(interactive "<!><r>")
|
||||
(mapc (lambda (rep)
|
||||
(let ((from (elt rep (if decode-p 0 1)))
|
||||
(to (elt rep (if decode-p 1 0))))
|
||||
(when (s-contains-p from text)
|
||||
(to (elt rep (if decode-p 1 0)))
|
||||
(case-fold-search t))
|
||||
(when (string-match-p (regexp-quote from) text)
|
||||
(setq text (s-replace from to text)))))
|
||||
+web-entities-list)
|
||||
text)
|
||||
|
Reference in New Issue
Block a user