Electric-indent on words

This commit is contained in:
Henrik Lissner 2016-03-23 11:59:06 -04:00
parent 3c72351220
commit 28a720e626
4 changed files with 22 additions and 2 deletions

View file

@ -9,6 +9,10 @@
(after! company-dict
(add-to-list 'company-dict-minor-mode-list 'love-mode))
(add-hook! lua-mode
(electric-indent-local-mode +1)
(setq narf-electric-indent-words '("else" "end")))
(defun narf-inf-lua ()
(lua-start-process "lua" "lua")
(pop-to-buffer lua-process-buffer)))