enable-packages

Enable packages via project manager

Tobias Happ

897

2

1.4.7

MIT

GitHub

This package consumes the following services:

enable-packages Travis CI apm The MIT License

An atom package for enabling packages via the project manager.

Usage

Add all packages, which you want to enable per project, in the list of optional packages in the package config or manually in the list of enable-packages.optionalPackages in your ~/.atom/config.cson like:

"*":
  "enable-packages":
    optionalPackages: [
      "autocomplete-hack"
      "autocomplete-racer"
    ]

Additionally you can set whether to disable all optional packages by default on atom start before reading the enabled packages of the current project. Prevents useless disabling and enabling of the same packages on atom start with the tradeoff that, if atom starts with a folder not configured as project in the project manager, optional packages could be still enabled. If project manager is heavily used for every project, it is safe to disable this option.

Then edit your ~/.atom/projects.cson (from the project manager package) to add the packages, you want to enable, for example:

[
  {
    title: "rust-project"
    paths: [
      "~/projects/rust"
    ]
    enable_packages: [
      "autocomplete-racer"
    ]
  }
  {
    title: "generic-project"
    paths: [
      "~/projects/generic"
    ]
  }
  {
    title: "hack-project"
    paths: [
      "~/projects/hack"
    ]
    enable_packages: [
      "autocomplete-hack"
    ]
  }
]

The disabled packages will be saved in core.disabledPackages in ~/.atom/config.cson.

Commands