Polymode PIO

This commit is contained in:
2024-06-22 08:43:35 +02:00
parent c0e142ff40
commit a0916297ce

19
.emacs
View File

@@ -542,6 +542,25 @@
(c-mode-common . clang-format+-mode)
)
(use-package polymode
:config
(define-hostmode poly-pio-hostmode
:mode 'asm-mode)
(define-auto-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))
)
(use-package yasnippet
:delight yas-minor-mode
:config