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/layers/+lang/lua/packages.el

37 lines
889 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
ggtags
helm-gtags
2015-01-14 03:31:40 +00:00
lua-mode
))
2015-01-14 03:31:40 +00:00
(defun lua/post-init-flycheck ()
2016-01-27 20:08:25 +00:00
(spacemacs/add-flycheck-hook 'lua-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)
2016-05-05 12:15:25 +00:00
:init
2015-01-14 03:31:40 +00:00
(progn
(setq lua-indent-level 2
lua-indent-string-contents t)
2016-05-05 12:15:25 +00:00
(spacemacs/set-leader-keys-for-major-mode 'lua-mode
"d" 'lua-search-documentation
"sb" 'lua-send-buffer
"sf" 'lua-send-defun
"sl" 'lua-send-current-line
"sr" 'lua-send-region))))
2015-05-28 18:06:50 +00:00
(defun lua/post-init-company ()
(add-hook 'lua-mode-hook 'company-mode))
(defun lua/post-init-ggtags ()
(add-hook 'lua-mode-hook #'spacemacs/ggtags-mode-enable))
(defun lua/post-init-helm-gtags ()
(spacemacs/helm-gtags-define-keys-for-mode 'lua-mode))