Excuse tyro question (google hasn't helped), but the default behaviour of paragraph reflow (M-q) not advancing to the next para doesn't suit me, particularly when reflowing a large section of text, and i end up doing the combination para-reflow, advance para (M-q, M-]). This is a surprising awkward combination to key in repeatedly. Is there any simple way ("simple" is important for me!) to redefine M-q to behave like M-q M-]?


Add the following to your init file (~/.emacs or ~/.emacs.d/init.el on linux systems):

 (defun fill-paragraph-next ()

 (define-key esc-map "q" 'fill-paragraph-next)

and restart emacs.

  • Brilliant! Exactly what i was looking for! Many thanks, Nick – ionh Jul 21 '17 at 18:58
  • In that case, please accept the answer. – NickD Jul 22 '17 at 3:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.