You're not going to get the same bang for your buck with a laptop.
But if all you do is edit text files and send emails, a laptop is fine.
I've been using Thinkpad T/P series with linux for many years. The next one will be a framework, since it feels like the build quality of the ThinkPads has gone downhill a lot in recent years.