3

I'm new to Emacs, and I'm storing my Emacs configuration in a GitHub repo. Whenever I move to a new computer, I want Emacs to install all packages I specify if they do not present on this computer. Pretty much like PluginInstall! in Vundle for Vim. Or like pip install -r requirements.txt. How can I do that?

I've just got my hands on Emacs. So if you know the answer, please provide some detailed instructions so I won't get lost.

Hot.PxL
  • 203
  • 1
  • 5

1 Answers1

3

If you load packages with use-package you can add :ensure t to make sure the package is installed on your system (installing it if needed). For example:

(use-package helm
  :ensure t)
erikstokes
  • 12,686
  • 2
  • 34
  • 56