-
Notifications
You must be signed in to change notification settings - Fork 1
/
.editorconfig
39 lines (33 loc) · 929 Bytes
/
.editorconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# defaults
[*]
# every text file:
charset = utf-8
# this repo is not meant to be edited in Windows, so LF is ok
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
# shell scripts, json, ini, etc:
indent_style = tab
max_line_length = 100
# tab_width and indent_width is not used, instead you can set your preferred indentation width
# in editor and browser, see my examples:
# Spacemacs: ./spacemacs/spacemacs
# Firefox: ./firefox/userContent.css
# Nix lang
# code style: https://nixos.org/nixpkgs/manual/#sec-syntax
[*.nix]
indent_style = space
indent_width = 2
# Elisp
# code style: https://github.com/bbatsov/emacs-lisp-style-guide
[spacemacs/spacemacs]
indent_style = space
indent_width = 2
# YAML
# tabs are not allowed: https://yaml.org/faq.html
[*.{yaml,yml}]
indent_style = space
indent_width = 2