From d0c47991981a706973899ad2c29c550a22ea6bb8 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 8 Jun 2024 20:41:51 +0200 Subject: build: add emacs formatting configuration --- .dir-locals.el | 5 +++++ .editorconfig | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .dir-locals.el 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 -- cgit 1.4.1