From acc0d88d655773789879e27185c4612053745d9e Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Sat, 9 Nov 2019 11:07:27 -0500 Subject: add Lua --- emacs/inits/20-programming.el | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/emacs/inits/20-programming.el b/emacs/inits/20-programming.el index e2e0494..23f48b5 100644 --- a/emacs/inits/20-programming.el +++ b/emacs/inits/20-programming.el @@ -1,4 +1,4 @@ -;; Time-stamp: <2019-09-11 11:30:39 (tslil@basingstoke)> +;; Time-stamp: <2019-11-05 15:36:26 (tslil@basingstoke)> ;; ----------------------------------------------------------------------------- ;; General setup @@ -73,6 +73,20 @@ (auto-revert-mode -1) (yas-minor-mode-on)))) +(use-package lua-mode + :ensure t + :defer t + :bind (:map lua-mode-map + ("C-c C-e" . lua-send-current-line) + ("C-c C-f" . lua-send-defun) + ("C-c C-s" . lua-send-region) + ("M-n" . lua-forward-sexp) + ("M-p" . lua-backwards-to-block-begin-or-end)) + :hook (lua-mode . (lambda () + (use-package company-lua :ensure t) + (add-to-list 'company-backends 'company-lua))) + ) + ;; What are these? ;; (setq gdb-show-threads-by-default nil ;; gdb-many-windows nil -- cgit v1.2.3