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

editorconfig: add default options file #30

Merged
merged 1 commit into from
Feb 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = false

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

[*.{c,h}]
indent_size = 8
13 changes: 8 additions & 5 deletions dev-docs/DEVELOPERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,17 @@ Programming Languages
- Perl
- Portable /bin/sh scripts for examples.

Editorconfig
------------

At the top-level of the `fvwm3` git repo, is a [.editorconfig](../.editorconfig)
file which sets some options which can be used across different editors. See
the [editorconfig webpage](https://editorconfig.org/) for more information and
to see whether your editor is supported.

New Code Files
--------------

- There are templates for new code files in the fvwm directory. Try to always
use them as they provide a clean structure of the header and code files.
Please honour the section titles. For example, put all static functions
(and only static functions) under the "local functions" section.

- All .c files *must* have

```
Expand Down