Skip to content

Commit

Permalink
Handle whitespace correctly
Browse files Browse the repository at this point in the history
The Emacs Editorconfig [suddenly added support for
`insert_final_newline =
false`](editorconfig/editorconfig-emacs@c707d8d),
making me realize I didn't actually want that enabled. I never noticed
this behavior because VS Code's Editorconfig extension [apparently
doesn't support this
setting](editorconfig/editorconfig-vscode#349).

`trim_trailing_whitespace = true` is a nice convenience
feature (except in Markdown, where I kept it disabled). Not sure why I
had it disabled.
  • Loading branch information
AdamVig committed Dec 6, 2024
1 parent b58bd0b commit bfad75a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ indent_style = tab
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = false
insert_final_newline = false
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_style = space
indent_size = 2
indent_size = 2

[*.md]
trim_trailing_whitespace = false

0 comments on commit bfad75a

Please sign in to comment.