cookiecutter for arduino/teensy projects with platformIO and emacs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
{{cookiecutter.repo_name}}
.gitignore
README.org
cookiecutter.json

README.org

Cookiecutter platformio-Emacs

A cookiecutter template for arduino projects using platformIO and Emacs.

Requirements

Install requirements, I have the following in my Emacs config file

(use-package irony-eldoc)
(use-package irony-mode) 
(use-package platformio-mode)
;; edit ino files with adruino mode. 
(add-to-list 'auto-mode-alist '("\\.ino$" . arduino-mode)) 
;; Enable irony for all c++ files, and platformio-mode only
;; when needed (platformio.ini present in project root).
(add-hook 'c++-mode-hook (lambda ()
                           (irony-mode)
                           (irony-eldoc)
                           (platformio-conditionally-enable)))

;; Use irony's completion functions.
(add-hook 'irony-mode-hook
          (lambda ()
            (define-key irony-mode-map [remap completion-at-point]
              'irony-completion-at-point-async)

            (define-key irony-mode-map [remap complete-symbol]
              'irony-completion-at-point-async)

            (irony-cdb-autosetup-compile-options)))
          

Largely based on the PlatformIO-mode documentation. See my website for a walk through of PlatformIO and Emacs use.

useage

Install cookiecutter. Either

cookiecutter https://github.com/nkicg6/cookiecutter-platformio-emacs.git

Or, clone the repo and

cookiecutter cookiecutter-platformio-emacs/

Suggestions welcome!