First, Atom will get every available package by saving the required paths ( i.e., folders containing the packages) in an array and use that to create another array containing the packages found on those directories.
When a package is loaded it means that Atom knows it is installed and that it will be either activated or deactivated. Internally, the PackageManager class (in package-manager.js) manages these states. Package StatesĪ package can be active, loaded, unloaded, or inactive. Open Atom, go to edit > preferences > install and search for the package you wish to install.īoth of these methods will download your packages to the default directory ( e.g., ~/.atom/packages on linux).Obviously, the Atom package manager, apm, must be installed (you can enter apm to verify installation). Enter apm install package-name on your terminal.There are two ways to install packages for Atom, It is so modular that anyone can write packages for it.Ītom has a bunch of people contributing to it on github, so don’t hesitate to lend a hand! How to Install a Package? This makes it a highly modular text editor. Yeah, OK, but what does it mean to be a hackable editor?Įverything in Atom is a package and every feature comes in the form of a package. It allows you to modify and add functionality to better fit your needs. Atom is a text editor hackable to its core.