summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-04-29 15:56:17 +0200
committerAlan Pearce2016-04-29 15:56:17 +0200
commit664350b7ac450e80d58507b6a178231047896de2 (patch)
tree0caac6a57529d9163365c6f905c8474feaeb23ff
parente2bdfce5385f6c4fecb4a705064cae344df7c248 (diff)
downloadnixfiles-664350b7ac450e80d58507b6a178231047896de2.tar.lz
nixfiles-664350b7ac450e80d58507b6a178231047896de2.tar.zst
nixfiles-664350b7ac450e80d58507b6a178231047896de2.zip
Emacs: Don’t guess indentation with editorconfig
-rw-r--r--tag-emacs/emacs.d/init.org2
1 files changed, 2 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index ba176300..9e6b3189 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -728,6 +728,8 @@ guesses the correct settings for me.
   (use-package dtrt-indent
     :config (progn
               (dtrt-indent-mode 1)
+              (add-hook 'editorconfig-custom-hooks (lambda ()
+                                                     (dtrt-indent-undo)))
               (defadvice dtrt-indent-try-set-offset (after toggle-smart-tabs activate)
                 (smart-tabs-mode (or indent-tabs-mode -1)))))
 #+END_SRC