Most of the packages I currently use are major modes for various languages that are only included in the off-chance I load a file of that type.
Is there a way to postpone loading them at startup in my
init file - until a filename with a particular file extension is loaded?
Note that I'm not familiar with exactly how emacs packages are already supposed to be using auto-load, but emacs without many packages starts nearly instantly, and with them - takes ~2seconds. I've profiled the startup and while some package a clearly worse offenders than others - this isn't one single package at fault. So I was interested to lazy load where possible.