GNU Emacs is an extensible, customizable text editor - and more. At its core is an interpreter for Emacs Lisp, a dialect of the Lisp programming language with extensions to support text editing.
Refer to the Emacs Documentation page for more detailed information.
Integration process consists of these steps:
- Open system Terminal and install PlatformIO Core (CLI)
- Create new folder for your project and change directory (
cd) to it
- Generate a project using PIO Core Project Generator (
platformio init --ide)
- Import project in IDE.
An Emacs minor mode has been written to facilitate building and uploading from within Emacs.
It can be installed from the MELPA repository using
See the MELPA Getting Started page for more information.
Setup instructions and an example config can be found at the Github page.
Code completion can optionally be provided by installing irony-mode
platformio init --ide emacs --board <ID>
There are 6 predefined targets for building.
platformio_build- Build project without auto-uploading. (
C-c i b)
platformio_clean- Clean compiled objects. (
C-c i c)
platformio_upload- Build and upload (if no errors). (
C-c i u)
platformio_programmer_upload- Build and upload using external programmer (if no errors, see Upload using Programmer). (
C-c i p)
platformio_spiffs_upload- Upload files to file system SPIFFS (see Uploading files to file system SPIFFS). (
C-c i s)
platformio_update- Update installed platforms and libraries. (
C-c i d)
The libraries which are added, installed or used in the project after generating process wont be reflected in IDE. To fix it you need to reinitialize project using platformio init (repeat it).