@Notxor OK. Got it solved with help from #lua channel at freenode 😀 It was my mistake to not be aware of how indentation works in #emacs. Just having a matching value for `lua-indent-level` and `tab-width` (together with `indent-tabs-mode t`) did the trick. Thanks for your help!