summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2016-04-29 15:56:17 +0200
committerAlan Pearce2016-04-29 15:56:17 +0200
commit664350b7ac450e80d58507b6a178231047896de2 (patch)
tree0caac6a57529d9163365c6f905c8474feaeb23ff /tag-emacs
parente2bdfce5385f6c4fecb4a705064cae344df7c248 (diff)
downloaddotfiles-664350b7ac450e80d58507b6a178231047896de2.tar.lz
dotfiles-664350b7ac450e80d58507b6a178231047896de2.tar.zst
dotfiles-664350b7ac450e80d58507b6a178231047896de2.zip
Emacs: Don’t guess indentation with editorconfig
Diffstat (limited to 'tag-emacs')
-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 ba17630..9e6b318 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