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

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

[nongnu] elpa/arduino-mode a1d57fe 027/107: Merge pull request #10 from


From: ELPA Syncer
Subject: [nongnu] elpa/arduino-mode a1d57fe 027/107: Merge pull request #10 from vanicat/master
Date: Sun, 29 Aug 2021 10:58:10 -0400 (EDT)

branch: elpa/arduino-mode
commit a1d57fe1168d573c2c7535cd57537cde6656a45e
Merge: 44c2728 1b7bae6
Author: Christopher Grim <christopher.grim@gmail.com>
Commit: Christopher Grim <christopher.grim@gmail.com>

    Merge pull request #10 from vanicat/master
    
    A command to run the arduino ide on current file
---
 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]