File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,7 @@ Note this is opposite logic to the toggle mode function."
232232 (ada-mode )
233233 (agda-mode)
234234 (applescript-mode)
235+ (arduino-mode)
235236 ((masm-mode nasm-mode) . jcs-asm-mode)
236237 (basic-mode)
237238 (bat-mode . jcs-batch-mode)
Original file line number Diff line number Diff line change 1+ ; ;; jcs-arduino-mode.el --- Arduino mode -*- lexical-binding : t -*-
2+ ; ;; Commentary:
3+ ; ;; Code:
4+
5+ (require 'arduino-mode )
6+
7+ ; ;
8+ ; ; (@* "Templates" )
9+ ; ;
10+
11+ (defun jcs-insert-arduino-template ()
12+ " Template for Arduino."
13+ (jcs--file-header--insert " arduino" " default.txt" ))
14+
15+ ; ;
16+ ; ; (@* "Hook" )
17+ ; ;
18+
19+ (jcs-add-hook 'arduino-mode-hook
20+ ; ; File Header
21+ (jcs-insert-header-if-valid '(" [.]pde" " [.]ino" )
22+ 'jcs-insert-arduino-template ))
23+
24+ (provide 'jcs-arduino-mode )
25+ ; ;; jcs-arduino-mode.el ends here
You can’t perform that action at this time.
0 commit comments