alphapapa / org-make-toc

Automatic tables of contents for Org-mode files
GNU General Public License v3.0
108 stars 18 forks source link

update readme with installation instructions for MELPA #18

Closed japhir closed 3 years ago

japhir commented 3 years ago

Seems like a lovely package! I found out it's on melpa already after initially not trying out the package because I didn't feel like using straight.el or copy-pasting stuff to local files. Maybe other users have a similar issue :)

alphapapa commented 3 years ago

I don't understand. The readme indicates that it can be installed from MELPA.

japhir commented 3 years ago

Me neither, looks like past me had a brainfart? Or perhaps he wanted a simple (use-package org-make-toc :ensure t) in there or something… Let's ignore him ;-).

alphapapa commented 3 years ago

:) Anyway, I don't recommend using :ensure t, and I prefer not to offer how-to-install-Emacs-packages instructions in every one of my projects' readmes. Rather, users should refer to the appropriate general documentation. Thanks.

japhir commented 3 years ago

just curious, why do you recommend against using :ensure t? I can imagine b/c it'll make your init script very slow the first time on a brand new emacs install?

alphapapa commented 3 years ago

I don't generally recommend installing or updating any packages automatically. Of course, many users do, and they seem to be happy with it. But I prefer to install and update packages manually. This way, I don't encounter undesired changes introduced by newer versions until I'm ready to deal with them. I also store installed packages in git with the rest of my Emacs config, so I can easily roll back to known-good configurations and package versions.

I don't often set up a new Emacs config from scratch. When I install Emacs on a new system, I clone my config, which includes all the installed packages (which also means that I can reproduce my entire config at any time, even if ELPA or MELPA are down). This way, I don't have different versions of packages on different systems, which can easily become a mess.

If I need to use a different Emacs config or test in a clean one, I use https://github.com/alphapapa/emacs-sandbox.sh, which makes it easy.

For more info, see the many and frequent discussions on r/emacs, some of which I've posted more explanations (opinions) in. :)

japhir commented 3 years ago

Thanks for the explanation! But doesn't the :ensure flag simply check if the package is installed? It doesn't auto-update, only checks if it's installed and if it isn't, does so.

alphapapa commented 3 years ago

Yes, and I said, "I don't generally recommend installing or updating any packages automatically."