swift-emacs / swift-mode

Emacs support for Apple's Swift programming language.
GNU General Public License v3.0
363 stars 47 forks source link

Add specialized comment fill function #176

Closed woolsweater closed 2 years ago

woolsweater commented 2 years ago

This incorporates certain Swift comment markup elements into comment filling, allowing fill-paragraph to nicely format most Swift doc comments.

A new variable allows the user to configure their comment fill column differently from the code fill column, defaulting to 80.

The implementation does not (yet) preserve indented lists or recognize fenced code blocks.

woolsweater commented 2 years ago

I've been using this in my own config for several months. I think it's in pretty good shape and I'd love to upstream it so other people can take advantage of it. Please let me know what you think!

taku0 commented 2 years ago

It's excellent. A quick test works well. I will review some details soon, including compatibility issues for old Emacs versions.

taku0 commented 2 years ago

Merged. Thank you.

woolsweater commented 2 years ago

Merged. Thank you.

Great, thank you!