Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Not that I know of. But it's easy to just C-x f to change the fill-column here or there. Then M-q to re-fill. Commented Sep 11, 2020 at 22:31
  • What are fill-paragraph-function and fill-forward-paragraph-function set to? Emacs actually has some logic for filling comments differently than the code, but it may not be relevant in your case, if ruby-mode overrides the default behavior (which it probably does). Anyways, my approach would be to look for ruby-mode's function to fill paragraph, and see if it is possible to extend / replace it with something of your own design that deals with comments the way you want. Commented Sep 13, 2020 at 6:58