]> gitweb.michael.orlitzky.com - emacs.d.git/blob - fix-nonstandard-chars.el
52f42df6c2b8d565eb80d191604ef8932648bc2b
[emacs.d.git] / fix-nonstandard-chars.el
1 (defun fix-nonstandard-chars (context)
2 "Replace some typical nonstandard characters that result from
3 copy-and-pasting word processor text into XHTML documents."
4
5 (interactive "P")
6
7 (replace-string "’" "'")
8 (replace-string "“" "“")
9 (replace-string "”" "”")
10 (replace-string "–" "-")
11 (replace-string "—" "—")
12 )