search and replace for elisp.

When mutt is told to gpg sign an email, it will use Quoted-Printable Content-Transfer-Encoding, which will replace " \n" with "=20\n", an escape sequence of some sort. (ASCII " " is 0x20.)

I'd rather replace " \n" with "\n" anyways. Here's some elisp code to do just that:

;; ~/.emacs ;;
(defun hal1 () (interactive)
  (auto-mega-replace  " \n" "\n"))
(defun auto-mega-replace (arg1 arg2)
    (while (search-forward arg1)
      (perform-replace arg1 arg2
        nil nil nil)

[edited 2003-02-20]