From 2cdf5527625de9f46c7755f2a09747d724b17970 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Behrmann?= Date: Tue, 24 Feb 2026 18:08:30 +0100 Subject: [PATCH] emacs: add settings for Python modes Both python-mode and python-ts-mode are shipped by Emacs nowadays, with the latter being the more modern tree-sitter-based one. Even though they are similar, the newer one doesn't automatically take the older ones settings. --- .dir-locals.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.dir-locals.el b/.dir-locals.el index 6944406da07..47da56f9390 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -22,6 +22,14 @@ (meson-mode . ((meson-indent-basic . 8))) (sh-mode . ((sh-indentation . 4))) (awk-mode . ((c-basic-offset . 8))) + (python-mode . ((indent-tabs-mode . nil) + (tab-width . 4) + (fill-column . 109) + (python-indent-def-block-scale . 1))) + (python-ts-mode . ((indent-tabs-mode . nil) + (tab-width . 4) + (fill-column . 109) + (python-indent-def-block-scale . 1))) (nil . ((indent-tabs-mode . nil) (tab-width . 8) (fill-column . 79))) ) -- 2.47.3