Major overhaul
This commit is contained in:
parent
4ab3ae1125
commit
6bda25da1f
76 changed files with 7431 additions and 571 deletions
21
modules/init-lua.el
Normal file
21
modules/init-lua.el
Normal file
|
@ -0,0 +1,21 @@
|
|||
(provide 'init-lua)
|
||||
|
||||
(use-package lua-mode
|
||||
:mode "\\.lua$"
|
||||
:interpreter "lua"
|
||||
:init
|
||||
(progn
|
||||
(define-minor-mode love-mode
|
||||
"Buffer local minor mode for Love2D"
|
||||
:init-value nil
|
||||
:lighter " <3"
|
||||
:keymap (make-sparse-keymap))
|
||||
(associate-minor-mode "[\\.-]love/.+\\.lua$" 'love-mode)
|
||||
|
||||
(add-hook 'lua-mode-hook 'enable-tab-width-2)
|
||||
(add-hook! 'lua-mode-hook (setq lua-indent-level tab-width))
|
||||
|
||||
|
||||
(defun my--build-love ()
|
||||
(shell-command (format "open -a love.app %s" (my--project-root))))
|
||||
))
|
Loading…
Add table
Add a link
Reference in a new issue