Skip to content

Conversation

mychris
Copy link

@mychris mychris commented Apr 12, 2025

Configures the adaptive-fill-regexp for zig-mode, such that other commands like fill-region can automatically determine a fill-prefix for comments.

Also, adds doc comment style comments to comment-start-skip, so these commands also work in doc comments.

Closes #86

Configures the adaptive-fill-regexp for zig-mode, such that other
commands like fill-region can automatically determine a fill-prefix for
comments.

Also, adds doc comment style comments to comment-start-skip, so these
commands also work in doc comments.
@precompute
Copy link

precompute commented Jun 29, 2025

Ran into this issue and this fixes it. fill region works as it should after this patch.

To test, eval (fill-context-prefix (point) (point)) on a comment via M-:.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrectly keeping prefix when using fill-region?
2 participants