Skip to content

Commit d4ffb8c

Browse files
committed
code: impls arduino
1 parent b328536 commit d4ffb8c

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

lisp/jcs-mode.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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)

lisp/mode/jcs-arduino-mode.el

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

0 commit comments

Comments
 (0)