I would like to combine
writegood-mode does not provide a function to check a region of text.
This is what I came up with to work around the limitation:
(defun writegood-region (beginning end) "Check style between BEGINNING and END." (interactive "r") (narrow-to-region beginning end) (writegood-mode) (widen)) (defun prose-check-region (beginning end) "Check spelling and style between BEGINNING and END." (interactive "r") (when (use-region-p) (writegood-region beginning end) (flyspell-region beginning end) (setq deactivate-mark t)))
The problem is that
writegood-mode remains enabled after the function