2018-03-18 15:31:32 -04:00
|
|
|
;;; lang/lua/config.el -*- lexical-binding: t; -*-
|
2015-06-15 09:06:10 +02:00
|
|
|
|
2018-06-25 15:54:38 +02:00
|
|
|
;; sp's default rules are obnoxious, so disable them
|
|
|
|
(provide 'smartparens-lua)
|
|
|
|
|
2018-09-07 19:36:16 -04:00
|
|
|
|
2018-05-25 00:46:11 +02:00
|
|
|
(after! lua-mode
|
2018-06-15 17:27:48 +02:00
|
|
|
(set-lookup-handlers! 'lua-mode :documentation 'lua-search-documentation)
|
2018-06-15 12:30:56 +02:00
|
|
|
(set-electric! 'lua-mode :words '("else" "end"))
|
2018-06-15 16:07:24 +02:00
|
|
|
(set-repl-handler! 'lua-mode #'+lua/repl)
|
2018-09-04 03:04:00 +02:00
|
|
|
(set-company-backend! 'lua-mode '(company-lua company-yasnippet)))
|
2015-06-15 09:06:10 +02:00
|
|
|
|
2016-05-01 17:23:37 -04:00
|
|
|
|
2018-09-07 22:08:11 -04:00
|
|
|
;; `moonscript'
|
|
|
|
(setq-hook! 'moonscript-mode-hook moonscript-indent-offset tab-width)
|
2016-05-01 17:23:37 -04:00
|
|
|
|
2017-02-19 18:57:16 -05:00
|
|
|
|
|
|
|
;;
|
2017-03-02 18:20:46 -05:00
|
|
|
;; Frameworks
|
2017-02-19 18:57:16 -05:00
|
|
|
|
2017-03-02 18:20:46 -05:00
|
|
|
(def-project-mode! +lua-love-mode
|
|
|
|
:modes (lua-mode markdown-mode json-mode)
|
2018-09-04 03:04:00 +02:00
|
|
|
:files (and "main.lua" "conf.lua")
|
|
|
|
:on-load
|
|
|
|
(map! :map +lua-love-mode-map
|
|
|
|
:localleader
|
|
|
|
:n "b" #'+lua/run-love-game))
|