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 PlatformIO Core Project Generator (
pio project init --ide)
Open project in Emacs.
ID using pio boards or Embedded Boards Explorer
command and generate project via
pio project init --ide command:
pio project init --ide emacs --board <ID>
The libraries which are added, installed or used in the project after generating process won’t be reflected in IDE. To fix it you need to reinitialize project using pio project init (repeat it).
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.
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 Using Filesystem). (
C-c i s)
platformio_update- Update installed platforms and libraries. (
C-c i d)