emacs

vemv 2025-06-26T08:42:18.462219Z

anyone tried to add a network timeout to these?

(package-refresh-contents)
(package-initialize)
I believe they can cause Emacs startup to hang, if melpa/etc are having a bad day

2025-06-26T20:36:55.537899Z

Are those things you want to call at startup anyway?

mpenet 2025-06-30T07:39:34.783899Z

you're probably better off using something like straight (rock solid) or elpaca (more bleeding edge) to have more control over this (and locking/pinning)

mpenet 2025-06-30T07:39:58.830929Z

they are also melpa compatible, it's quite easy to port to it

vemv 2025-06-27T07:42:58.956459Z

Thought it was something everyone would do I enjoy having an idempotent setup that does everything for me... but yeah next time I'll see if disabling those does the trick

Sam 2025-06-27T07:45:28.941359Z

I apparently have

(unless package-archive-contents
  (package-refresh-contents))
in my init. The goal being to get the first launch on a new pc working but not otherwise.

💡 1
iarenaza 2025-07-01T10:19:47.091299Z

@vemv This is how I use straight.el to have an idempotent setup: https://gist.github.com/iarenaza/ad2f19252ff33148902081a8e8317784 (The files in there are the ones I use, except for init.el, which I trimmed down a bit before adding it to the gist).

vemv 2025-07-01T10:22:44.540639Z

Thanks for the pointers folks! Yeah maybe it's time to move to Straight, I have a good opinion of it. I was just quite attached to my old setup (melpa + git submodules) which served me well for so long 🫡

iarenaza 2025-07-01T10:30:17.363919Z

Note that, if you are on Emacs 30 or later, use-package can now use version controlled sources for package installations (in addition to package repositories like ELPA, MELPA, etc). So, in theory, you could achieve the exact same thing that you can get with straight.el. I haven't done it yet, but I intend to rewrite my configuration that way. So I can get rid of straight.el, and do the whole thing with the integrated use-package features.

mpenet 2025-07-01T12:39:20.745349Z

straight makes it a bit more streamlined

mpenet 2025-07-01T12:39:46.458129Z

No fuss bulk upgrades/pinning etc

ericdallo 2025-06-26T21:04:49.260529Z