about summary refs log tree commit diff
path: root/editorconfig
diff options
context:
space:
mode:
Diffstat (limited to 'editorconfig')
-rw-r--r--editorconfig/.editorconfig89
-rwxr-xr-xeditorconfig/@install7
2 files changed, 96 insertions, 0 deletions
diff --git a/editorconfig/.editorconfig b/editorconfig/.editorconfig
new file mode 100644
index 0000000..0bb0c6e
--- /dev/null
+++ b/editorconfig/.editorconfig
@@ -0,0 +1,89 @@
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+indent_size = 4
+indent_style = space
+insert_final_newline = true
+trim_trailing_whitespace = true
+
+# Assembly
+[*.{asm,s,S}]
+indent_style = tab
+
+# C/C++
+[*.{c,h,cc,hh,cpp,hpp,cxx,hxx}]
+indent_style = tab
+max_line_length = 80
+trim_trailing_whitespace = false
+insert_final_newline = false
+
+# C#
+[*.cs]
+indent_style = tab
+
+# Go
+[*.go]
+indent_style = tab
+
+# Python
+[*.py]
+max_line_length = 80
+
+# Haskell
+[*.{hs,lhs}]
+indent_size = 2
+
+# Emacs Lisp
+[*.el]
+indent_size = 2
+
+# Common Lisp
+[*.{lisp,cl}]
+indent_size = 2
+
+# Scheme
+[*.scm]
+indent_size = 2
+
+# Make
+[{Makefile,*.mk}]
+indent_style = tab
+
+# CMake
+[{CMakeLists.txt,*.cmake}]
+indent_style = tab
+
+# Autotools
+[*.{ac,am}]
+indent_style = tab
+
+# Shell
+[*.{sh,bash}]
+indent_style = tab
+insert_final_newline = false
+trim_trailing_whitespace = false
+
+# Gentoo
+[*.ebuild]
+indent_style = tab
+
+# RPM Spec
+[*.spec]
+insert_final_newline = false
+trim_trailing_whitespace = false
+
+# Nix
+[*.nix]
+indent_size = 2
+
+# XML
+[*.xml]
+indent_style = tab
+insert_final_newline = false
+trim_trailing_whitespace = false
+
+# Git
+[*.git*]
+indent_style = tab
diff --git a/editorconfig/@install b/editorconfig/@install
new file mode 100755
index 0000000..8c0622f
--- /dev/null
+++ b/editorconfig/@install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+stow \
+    --target="${HOME}" \
+    --ignore="^@.*" \
+    --verbose \
+    editorconfig

Consider giving Nix/NixOS a try! <3