chiark / gitweb /
dir-locals: Provide python-indent-offset too
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 29 Nov 2019 23:37:01 +0000 (23:37 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Dec 2019 17:08:49 +0000 (17:08 +0000)
python-indent is obsolete since Emacs 24.3.  It has been made into an
alias for python-indent-offset, but the alias is not marked safe as a
file variable.  Specifying python-indent-offset should make this work
on all relevant versions of Emacs (at least in the default
configuration).

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
.dir-locals.el

index 7ca463d57c8ea6cc87ca3d72a19173617daea2db..95ea27ff3bca1c61ed57f3f7873d82062352a36d 100644 (file)
@@ -5,4 +5,5 @@
   (c-basic-offset . 4))
  (python-mode
   (indent-tabs-mode . t)
+  (python-indent-offset . 8)
   (python-indent . 8)))