Emacs Shell Command on Region
Performing an Operation on a Region
- Problem
-
when using emacs as the e-mail editor within mutt, messages
that have been sent with the quoted-printable encoding appear with
replacement strings instead of real characters...
- Solution with konwert
-
Select the region that has to be converted,
then press
C-u ESC-¦ konwert qp-8bit RET
. This passes the
contents of the selected region through the converter konwert,
changing quoted-printable to 8bit encoding, and replaces the region
with the output of the conversion.
- without the prefix
C-u
, the output is placed in a newly created
*Shell Output Buffer*
.
ESC-¦
is equivalent to M-¦
, but the latter does
not always work in terminal windows.