mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add lua-mode initfiles
This commit is contained in:
14
modules/env-lua-mode.el
Normal file
14
modules/env-lua-mode.el
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
(add-hook 'lua-mode-hook
|
||||||
|
(lambda()
|
||||||
|
(evil-define-key 'normal lua-mode-map (kbd "s-r")
|
||||||
|
(lambda() (interactive) (shell-command-on-region (point-min) (point-max) "lua")))
|
||||||
|
(evil-define-key 'visual lua-mode-map (kbd "s-r")
|
||||||
|
(lambda() (interactive) (shell-command-on-region (region-beginning) (region-end) "lua")))
|
||||||
|
|
||||||
|
(define-key lua-mode-map (kbd "s-b")
|
||||||
|
(lambda() (shell-command (concat "love " default-directory)))
|
||||||
|
)))
|
||||||
|
|
||||||
|
;;
|
||||||
|
(provide 'env-lua-mode)
|
Reference in New Issue
Block a user