about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-08 20:41:51 +0200
committerAlan Pearce2024-06-08 20:42:48 +0200
commitd0c47991981a706973899ad2c29c550a22ea6bb8 (patch)
tree0aadec2abf8651bdd09aed428dc06bc1160b3906
parent408aed03d3454330120475ca53838a2f4fe28ea3 (diff)
downloadsearchix-d0c47991981a706973899ad2c29c550a22ea6bb8.tar.lz
searchix-d0c47991981a706973899ad2c29c550a22ea6bb8.tar.zst
searchix-d0c47991981a706973899ad2c29c550a22ea6bb8.zip
build: add emacs formatting configuration
-rw-r--r--.dir-locals.el5
-rw-r--r--.editorconfig4
2 files changed, 9 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000..268db89
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,5 @@
+;;; Directory Local Variables            -*- no-byte-compile: t -*-
+;;; For more information see (info "(emacs) Directory Variables")
+
+((go-ts-mode . ((apheleia-formatter . golines)))
+ (web-mode . ((apheleia-formatter . prettier-gotmpl))))
diff --git a/.editorconfig b/.editorconfig
index 13a6a6f..34e76d0 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -17,3 +17,7 @@ indent_size = 4
 [*.md]
 indent_size = 4
 trim_trailing_whitespace = false
+
+[*.el]
+# checker complains when spaces are used for alignment otherwise
+indent_size = 1