summaryrefslogtreecommitdiff
path: root/emacs/inits/20-programming.el
diff options
context:
space:
mode:
authortslil clingman <>2019-11-09 11:37:55 -0500
committertslil clingman <>2019-11-09 11:37:55 -0500
commit0de26bf98f8ce2360c5e0614909ab349c8393eb8 (patch)
tree5766c8c573fc07e8f47878121d2edc1d9288a23a /emacs/inits/20-programming.el
parentacc0d88d655773789879e27185c4612053745d9e (diff)
Added nodemcu-mode
Diffstat (limited to 'emacs/inits/20-programming.el')
-rw-r--r--emacs/inits/20-programming.el24
1 files changed, 17 insertions, 7 deletions
diff --git a/emacs/inits/20-programming.el b/emacs/inits/20-programming.el
index 23f48b5..c75d2c3 100644
--- a/emacs/inits/20-programming.el
+++ b/emacs/inits/20-programming.el
@@ -1,4 +1,4 @@
-;; Time-stamp: <2019-11-05 15:36:26 (tslil@basingstoke)>
+;; Time-stamp: <2019-11-09 11:36:50 (tslil@basingstoke)>
;; -----------------------------------------------------------------------------
;; General setup
@@ -73,19 +73,29 @@
(auto-revert-mode -1)
(yas-minor-mode-on))))
+(use-package nodemcu-mode
+ :ensure t
+ :defer t
+ :config
+ (setq nodemcu-default-keybindings t
+ nodemcu-port "/dev/ttyUSB0"
+ nodemcu-backend "nodemcu-uploader"))
+
(use-package lua-mode
+ :after nodemcu-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)
+ ("C-x C-e" . lua-send-current-line)
+ ("C-c C-d" . lua-send-defun)
+ ("C-c C-e" . 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)))
- )
+ (require 'nodemcu-mode)
+ (use-package company-lua :ensure t :demand)
+ (nodemcu-mode)
+ (add-to-list 'company-backends 'company-lua))))
;; What are these?
;; (setq gdb-show-threads-by-default nil