Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: long line breaks automatically in coffeescript #5208

Closed
mb-dev opened this issue Feb 24, 2016 · 4 comments
Closed

Question: long line breaks automatically in coffeescript #5208

mb-dev opened this issue Feb 24, 2016 · 4 comments
Labels
- Forum - Documentation ✏ Ready for work stale marked as a stale issue/pr (usually by a bot)

Comments

@mb-dev
Copy link

mb-dev commented Feb 24, 2016

This "feature" drives me crazy. I am not sure which package introduces this behavior. Whenever I type a line longer than 74 character in a .coffee file, a line break is automatically introduced and the 2nd line is properly indented. Even if I modify an existing long line, it breaks around column 74.

I didn't experience this in golang or javascript so I think it's specific to coffeescript. I can't find anything related in coffee-mode, or the other packages in lang/js.

My .spacemacs can be found here:
https://github.com/mb-dev/dotfiles/blob/master/.spacemacs

@TheBB
Copy link
Collaborator

TheBB commented Feb 24, 2016

Sounds like something has turned on auto-fill-mode. Try disabling that.

@mb-dev
Copy link
Author

mb-dev commented Feb 25, 2016

Yeah. That was the cause. I toggled it with SPC t F, and this turned it off. Not sure which package causes it to be turned on in the first place.

I don't see this toggle listed under the documentation. Would it be helpful to make a PR and add it? and also write something about line break, so it's more easily searchable?

@TheBB
Copy link
Collaborator

TheBB commented Feb 25, 2016

It's turned on by coffee-mode itself here

Turning it off by default in Spacemacs would make it difficult to turn back on, since that would set auto-fill-function to its default value of do-auto-fill, and not the coffee-mode specific function of coffee-auto-fill-fn, which presumably does a better job.

I would prefer to document how to turn this off instead.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Forum - Documentation ✏ Ready for work stale marked as a stale issue/pr (usually by a bot)
Projects
None yet
Development

No branches or pull requests

5 participants