Set up embedded dev environment using PlatformIO
This commit is contained in:
parent
d872172bc6
commit
30a5cd3ad7
|
@ -34,3 +34,10 @@
|
||||||
;; Keybindings for citar
|
;; Keybindings for citar
|
||||||
(map! :leader :n "n B" #'citar-open-files
|
(map! :leader :n "n B" #'citar-open-files
|
||||||
:desc "Open associated PDF with bibliography entry")
|
:desc "Open associated PDF with bibliography entry")
|
||||||
|
;; Keybindings for PlatformIO
|
||||||
|
(map! :after platformio-mode
|
||||||
|
:map platformio-mode-map
|
||||||
|
(:leader
|
||||||
|
:desc "Compile the project" "c c" #'platformio-build
|
||||||
|
:desc "Upload the project" "c u" #'platformio-upload
|
||||||
|
:desc "Monitor the serial console" "c m" #'platformio-device-monitor))
|
||||||
|
|
2
+ui.el
2
+ui.el
|
@ -58,3 +58,5 @@
|
||||||
:action =wallabag) t)
|
:action =wallabag) t)
|
||||||
;; Decrease size of icons in the modeline
|
;; Decrease size of icons in the modeline
|
||||||
(setq all-the-icons-scale-factor 1.0)
|
(setq all-the-icons-scale-factor 1.0)
|
||||||
|
;; Increase size of the PlatformIO compilation buffer
|
||||||
|
(set-popup-rule! "*platformio*" :size 0.25 :vslot -4 :select t :quit nil :ttl 0)
|
||||||
|
|
|
@ -138,3 +138,8 @@
|
||||||
(setq native-comp-deferred-compilation nil)
|
(setq native-comp-deferred-compilation nil)
|
||||||
(after! (doom-packages straight)
|
(after! (doom-packages straight)
|
||||||
(setq straight--native-comp-available t))
|
(setq straight--native-comp-available t))
|
||||||
|
;; Use PlatformIO for Arduino development
|
||||||
|
(use-package! platformio-mode
|
||||||
|
:after cc-mode
|
||||||
|
:config
|
||||||
|
(add-hook! 'c++-mode-hook (platformio-conditionally-enable)))
|
||||||
|
|
|
@ -26,3 +26,5 @@
|
||||||
(package! asoc :recipe (:host github :repo "troyp/asoc.el"))
|
(package! asoc :recipe (:host github :repo "troyp/asoc.el"))
|
||||||
(package! doct :recipe (:host github :repo "progfolio/doct"))
|
(package! doct :recipe (:host github :repo "progfolio/doct"))
|
||||||
(package! org-capture-ref :recipe (:host github :repo "yantar92/org-capture-ref"))
|
(package! org-capture-ref :recipe (:host github :repo "yantar92/org-capture-ref"))
|
||||||
|
;; Arduino development
|
||||||
|
(package! platformio-mode)
|
||||||
|
|
Loading…
Reference in New Issue