IQSS / IQSS.emacs

Yet Another .emacs.d
http://iqss.github.io/IQSS.emacs/
74 stars 24 forks source link

A list of the packages we always want (setq package-selected-packages) #17

Closed AtomicNess123 closed 4 years ago

AtomicNess123 commented 4 years ago

Hi,

What is the usefulness of overriding the value of this variable, as you have it in your init file?

(setq package-selected-packages...)

Thanks, GM

izahn commented 4 years ago

The basic idea is that we list all packages we want to install, and then install them with

(unless (every 'package-installed-p package-selected-packages)
  (package-refresh-contents)
  (package-install-selected-packages))

That happens both in init.el and in custom.el. If that doesn't answer your question please give some more details about what you want to know.

AtomicNess123 commented 4 years ago

Thanks. Do you mean I must have those lines of code after (setq package-selected-packages...). I'm new in Emacs, and a friend configured my init file. I am now going through it and found that line at the beginning of the init, and was wondering whether I should remove it. I have since then installed other packages that I manually at by adding individual setq ´nameofpackage. So I wonder if I should add them inside the (setq package-selected-packages...) or not. Sorry about my bad English!

izahn commented 4 years ago

Got it, and welcome to Emacs! Just add your packages in the custom.el file as described in the README at https://github.com/IQSS/IQSS.emacs#customization

AtomicNess123 commented 4 years ago

Thanks a lot.