emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/arduino-mode 1b7bae6 026/107: A command to run the arduino


From: ELPA Syncer
Subject: [nongnu] elpa/arduino-mode 1b7bae6 026/107: A command to run the arduino ide on current file
Date: Sun, 29 Aug 2021 10:58:10 -0400 (EDT)

branch: elpa/arduino-mode
commit 1b7bae647cc15c956d5aa6e64e4a3fd37ae9ef2e
Author: Rémi Vanicat <vanicat@debian.org>
Commit: Rémi Vanicat <vanicat@debian.org>

    A command to run the arduino ide on current file
    
    The arduino-executable custom can be customize to find the arduino
    executable.
---
 arduino-mode.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arduino-mode.el b/arduino-mode.el
index ffdb7d8..6327afc 100644
--- a/arduino-mode.el
+++ b/arduino-mode.el
@@ -123,6 +123,11 @@
   "*List of extra types (aside from the type keywords) to recognize in Arduino 
mode.
 Each list item should be a regexp matching a single identifier." :group 
'arduino)
 
+(defcustom arduino-executable "arduino"
+  "*The arduino executable"
+  :group 'arduino
+  :type 'string)
+
 (defconst arduino-font-lock-keywords-1 (c-lang-const c-matchers-1 arduino)
   "Minimal highlighting for Arduino mode.")
 
@@ -199,5 +204,9 @@ Key bindings:
   (run-hooks 'arduino-mode-hook)
   (c-update-modeline))
 
+(defun arduino-run-arduino ()
+  (interactive)
+  (start-file-process "arduino" () arduino-executable (buffer-file-name)))
+
 (provide 'arduino-mode)
 ;;; arduino-mode.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]