mod-love: better love2D support
This commit is contained in:
parent
3714e41b47
commit
d73cf14cfb
1 changed files with 9 additions and 10 deletions
|
@ -14,18 +14,17 @@
|
|||
:group lua)
|
||||
|
||||
(define-key love-mode-map (kbd "s-b")
|
||||
(lambda() (shell-command (concat "love " default-directory))))
|
||||
(lambda() (interactive) (shell-command (concat "open -a love.app " default-directory))))
|
||||
|
||||
(add-hook 'lua-mode-hook
|
||||
(lambda()
|
||||
(if (string-match "\\.love/.+\\.lua" default-directory)
|
||||
(if (string-match "\\.love/.+\\.lua\\'" (buffer-file-name))
|
||||
(love-mode t))
|
||||
|
||||
(nmap lua-mode-map (kbd "s-r")
|
||||
(lambda() (interactive) (shell-command-on-region (point-min) (point-max) "lua")))
|
||||
(vmap lua-mode-map (kbd "s-r")
|
||||
(lambda() (interactive) (shell-command-on-region (region-beginning) (region-end) "lua")))
|
||||
|
||||
))))
|
||||
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue