]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add .dir-locals.el file for emacs
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 5 Jun 2023 15:00:37 +0000 (17:00 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 5 Jun 2023 15:06:05 +0000 (17:06 +0200)
.dir-locals.el [new file with mode: 0644]

diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644 (file)
index 0000000..1c3fbca
--- /dev/null
@@ -0,0 +1,17 @@
+; Sets emacs variables based on mode.
+; A list of (major-mode . ((var1 . value1) (var2 . value2)))
+; Mode can be nil, which gives default values.
+
+; Note that we set a wider line width source files, but for everything else we
+; stick to a more conservative 79 characters.
+
+; NOTE: Keep this file in sync with .editorconfig.
+
+((python-mode . ((indent-tabs-mode . nil)
+                 (tab-width . 4)
+                 (fill-column . 99)))
+ (sh-mode . ((sh-basic-offset . 4)
+             (sh-indentation . 4)))
+ (nil . ((indent-tabs-mode . nil)
+         (tab-width . 4)
+         (fill-column . 79))) )