Errol Hassall
Errol Hassall

Reputation: 416

Spacemacs packages disapear on reboot

Whenever I boot up emacs the packages that I installed on the previous session disapear and I have to reinstall them. I run this command to allow multiple terminals, if I close emacs and reopen it, this package and all others will have to be reinstalled.

package-install multi-term

What am I doing wrong?

Upvotes: 1

Views: 566

Answers (2)

Errol Hassall
Errol Hassall

Reputation: 416

It turns out because I was using Spacemacs for emacs, the dotspacemacs file that it uses for all its configurations and packages overwrites the emacs.d file. This causes the packages installed using:

package-install

to become orphaned and they get removed on reboot.

To solve this I had to manually add the packages to the dotspacemacs-additional-packages function. This tells spacemacs on bootup to install/load those packages. When ever you add a new package add it here rather than using the package-install command.

enter image description here

Upvotes: 6

Rorschach
Rorschach

Reputation: 32446

You need to call package-initialize. You will probably want to add it to your init file and read its documentation about other applicable settings, eg. M-xdescribe-function package-initialize

Upvotes: 1

Related Questions