summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-03-24 02:11:34 +0000
committerSam James <sam@gentoo.org>2023-03-25 02:59:57 +0000
commit3f460fbebaf8f2acaf1a7b132d1eb97f089c1a13 (patch)
treec387a7177262144a063c0b37a6b6bcf8ca6e089a /.editorconfig
parentapp-emacs/flycheck: Keyword 32_p20230305-r1 riscv, #902873 (diff)
downloadgentoo-3f460fbebaf8f2acaf1a7b132d1eb97f089c1a13.tar.gz
gentoo-3f460fbebaf8f2acaf1a7b132d1eb97f089c1a13.tar.bz2
gentoo-3f460fbebaf8f2acaf1a7b132d1eb97f089c1a13.zip
.editorconfig: add
This allows conveniently editing ebuilds and eclasses in editors which don't have a specific ebuild mode like Emacs and Vim do. For example, kde-apps/kate with kde-frameworks/ktexteditor[editorconfig] can automatically read this file and adjust settings appropriately. It's possible that going forward we may want to have pkgdev support custom keys in this file for e.g. copyright year mangling too. Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to '.editorconfig')
-rw-r--r--.editorconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 000000000000..7d6e17345e1e
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,11 @@
+# https://editorconfig.org/
+root = true
+
+[*.{ebuild,eclass}]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+indent_size = 4
+trim_trailing_whitespace = true
+#max_line_length = 80