If electric-indent-mode is turned on, it could mess up with ztree formatting. With emacs 24.4, there will be a function called electric-indent-local-mode to disable electric-indent locally. This happens with yaml-mode as well, you can read further here: A Peek at Emacs 24.4: Auto-indentation by Default
Meanwhile, to disable electric-indent-mode locally in Emacs 24.3, we can do this:
You should update the documentation about this issue and note new users about this issue and instruct them to turn off electric-indent-mode if they use.
If
electric-indent-mode
is turned on, it could mess up with ztree formatting. With emacs 24.4, there will be a function calledelectric-indent-local-mode
to disableelectric-indent
locally. This happens withyaml-mode
as well, you can read further here: A Peek at Emacs 24.4: Auto-indentation by DefaultMeanwhile, to disable
electric-indent-mode
locally in Emacs 24.3, we can do this:Taken from SO: How to turn of electric-indent-mode for specific Major mode?
You should update the documentation about this issue and note new users about this issue and instruct them to turn off
electric-indent-mode
if they use.