From 0de26bf98f8ce2360c5e0614909ab349c8393eb8 Mon Sep 17 00:00:00 2001 From: tslil clingman <> Date: Sat, 9 Nov 2019 11:37:55 -0500 Subject: Added nodemcu-mode --- emacs/inits/20-programming.el | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'emacs/inits/20-programming.el') 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 -- cgit v1.2.3