Commit 860bf3a4 authored by marc0s's avatar marc0s

fix(lua-mode): properly set indentation to use TABs

parent 75e58283
......@@ -281,9 +281,16 @@ work here..."
(use-package lua-mode
:ensure t
:preface
(defun marc0s/lua-indent ()
"Set custom indent for lua."
(setq-local indent-tabs-mode t)
(setq-local tab-width 4))
:config
;; TODO set up TABs as indent, not the default weird one :S
(add-hook 'lua-mode-hook 'flycheck-mode))
(setq lua-indent-level 4)
(add-hook 'lua-mode-hook 'flycheck-mode)
(add-hook 'lua-mode-hook 'marc0s/lua-indent))
(use-package magit
:ensure t
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment