Especially when copying text from things like Google docs, I would like Emacs to automatically remove smart double quotes, smart single quotes, and all manner of em-dash and en-dash characters, replacing them with their ascii equivalents.
Is there a way to configure Emacs to do this automatically? Or, baring that, a function I can call that will do it on the buffer or region?
(occur "[^[:ascii:]]")
to find non-ascii characters in a buffer for manual cleanup, but automatically replacing the common ones would be great. – glucas Nov 12 '14 at 14:50