This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/!lang/lua/packages.el

28 lines
822 B
EmacsLisp
Raw Normal View History

(setq lua-packages
2015-01-14 03:31:40 +00:00
'(
2015-05-28 18:06:50 +00:00
company
flycheck
2015-01-14 03:31:40 +00:00
lua-mode
))
2015-01-14 03:31:40 +00:00
(defun lua/post-init-flycheck ()
(add-hook 'lua-mode-hook 'flycheck-mode))
2015-01-14 03:31:40 +00:00
(defun lua/init-lua-mode ()
(use-package lua-mode
:defer t
:mode ("\\.lua\\'" . lua-mode)
:interpreter ("lua" . lua-mode)
:config
(progn
(setq lua-indent-level 2
lua-indent-string-contents t)
(evil-leader/set-key-for-mode 'lua-mode "md" 'lua-search-documentation)
(evil-leader/set-key-for-mode 'lua-mode "msb" 'lua-send-buffer)
(evil-leader/set-key-for-mode 'lua-mode "msf" 'lua-send-defun)
(evil-leader/set-key-for-mode 'lua-mode "msl" 'lua-send-current-line)
(evil-leader/set-key-for-mode 'lua-mode "msr" 'lua-send-region))))
2015-05-28 18:06:50 +00:00
(defun lua/post-init-company ()
(add-hook 'lua-mode-hook 'company-mode))