]> gitweb.michael.orlitzky.com - emacs.d.git/blob - fix-nonstandard-chars.el
Modified the fix-nonstandard-characters function to work interactively and to support...
[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 )