mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-19 13:43:36 -05:00
Rewrote initfiles
This commit is contained in:
19
init/init-lua.el
Normal file
19
init/init-lua.el
Normal file
@@ -0,0 +1,19 @@
|
||||
(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)
|
||||
|
||||
(defun my--build-love ()
|
||||
(shell-command (format "open -a love.app %s" (my--project-root))))
|
||||
|
||||
(add-hook! 'lua-mode-hook (setq my-run-code-interpreter "lua"))
|
||||
(add-hook! 'love-mode-hook (setq my-build-func 'my/build-love))))
|
Reference in New Issue
Block a user