[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/arduino-mode 1f154e4 063/107: add a command to create new
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/arduino-mode 1f154e4 063/107: add a command to create new Arduino sketch |
Date: |
Sun, 29 Aug 2021 10:58:17 -0400 (EDT) |
branch: elpa/arduino-mode
commit 1f154e46d1435e27cc433176a2e5b575c5f220b8
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
add a command to create new Arduino sketch
---
arduino-mode.el | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arduino-mode.el b/arduino-mode.el
index fae48c1..125fd3c 100644
--- a/arduino-mode.el
+++ b/arduino-mode.el
@@ -44,6 +44,16 @@
;; fall back on c-mode
(c-add-language 'arduino-mode 'c-mode))
+(defgroup arduino-mode nil
+ "Customize arduino-mode."
+ :prefix "arduino-mode-"
+ :group 'arduino)
+
+(defcustom arduino-mode-home "~/Arduino"
+ "The path of ARDUINO_HOME."
+ :type 'directory
+ :group 'arduino-mode)
+
(c-lang-defconst c-primitive-type-kwds
arduino (append '(;; Data Types
"boolean" "byte"
@@ -278,6 +288,14 @@ Each list item should be a regexp matching a single
identifier."
(serial-term port (or speed (serial-read-speed)))))
;;;###autoload
+(defun arduino-sketch-new (sketch)
+ "A command to create new `SKETCH' in ARDUINO_HOME (~/Arduino)."
+ (interactive (list (read-from-minibuffer "Arduino new sketch file: ")))
+ (let ((default-directory (expand-file-name arduino-mode-home)))
+ (find-file sketch)))
+
+
+;;;###autoload
(define-derived-mode arduino-mode c-mode "arduino"
"Major mode for editing Arduino code."
;; For `cc-mode' initialize.
- [nongnu] elpa/arduino-mode 3fc0851 046/107: use define-derived-mode for arduino-mode, (continued)
- [nongnu] elpa/arduino-mode 3fc0851 046/107: use define-derived-mode for arduino-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 0150970 050/107: support org-mode babel Arduino src block, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 139b154 051/107: add support for --board option with header argument :boarder, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 3f0b3a4 057/107: rename command arduino-build -> arduino-verify, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 7b94f5b 058/107: creating process with make-process to use process sentinel to get notification., ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 714e0f0 059/107: add missing menu entries, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 6b549c8 064/107: add a command to add include-path file for irony, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 8235a4a 065/107: fix mode-line-process not disappear after process failed, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 431c3ba 069/107: Merge branch 'develop', ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 9b1bdb8 060/107: support show process info in mode-line, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 1f154e4 063/107: add a command to create new Arduino sketch,
ELPA Syncer <=
- [nongnu] elpa/arduino-mode 8e82926 072/107: Use arduino-executable in commands instead, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode a4dbdfa 085/107: update arduino-mode-syntax-table to inherit from c-mode directly, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 9234c9d 087/107: Replace defmethod -> cl-defmethod, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 01cb165 096/107: plan to support "arduino-cli" command-line tools, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 1c9250d 097/107: Fix recursive ‘require’ for feature ‘flycheck-arduino’, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode f0053f5 061/107: raise process buffer if process failed, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode af1f18a 067/107: add flycheck support, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 0e95bdf 084/107: auto setup flycheck-arduino on arduino-mode-hook, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode eac5031 090/107: fix function `flycheck-arduino-setup' unknown when compilation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/arduino-mode 49dd8be 095/107: fix flycheck warnings, ELPA Syncer, 2021/08/29