summaryrefslogtreecommitdiff
path: root/emacs/inits/20-programming.el
diff options
context:
space:
mode:
authortslil clingman <>2019-11-09 11:07:27 -0500
committertslil clingman <>2019-11-09 11:07:27 -0500
commitacc0d88d655773789879e27185c4612053745d9e (patch)
tree1576ce36afd2800c87f0ca79dc18428324a1aab9 /emacs/inits/20-programming.el
parent5a344cc59ab350ae9ba9f56443ae5b24b6dab67d (diff)
add Lua
Diffstat (limited to 'emacs/inits/20-programming.el')
-rw-r--r--emacs/inits/20-programming.el16
1 files changed, 15 insertions, 1 deletions
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