aboutsummaryrefslogtreecommitdiff
path: root/dot.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'dot.emacs.d/init.el')
-rw-r--r--dot.emacs.d/init.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el
index ae2b75a..0481527 100644
--- a/dot.emacs.d/init.el
+++ b/dot.emacs.d/init.el
@@ -494,6 +494,21 @@
:mode ("\\.gp\\'" . gnuplot-mode)
:hook ((gnuplot-comint-mode . qsx-disable-show-trailing-whitespace)))
+;; RP PIO
+(progn
+ (define-hostmode poly-pio-hostmode
+ :mode 'asm-mode)
+ (define-innermode poly-pio-c-innermode
+ :mode 'c-mode
+ :head-matcher "^% c-sdk {$"
+ :tail-matcher "^%}$"
+ :head-mode 'host
+ :tail-mode 'host)
+ (define-polymode poly-pio-mode
+ :hostmode 'poly-pio-hostmode
+ :innermodes '(poly-pio-c-innermode))
+ (add-to-list 'auto-mode-alist '("\\.pio\\'" . poly-pio-mode)))
+
;;; Mail
(use-package gnus
:defer t