Hacker News new | ask | show | jobs
by gnulinux 1515 days ago
Regardless emacs can take long to boot up (unless you invoke it with -Q) but nano is instant. So when I need to change one line of a file real quick, nano is the better tool imho.
5 comments

I launch Emacs when I log in just after booting. It restores its desktop (all the frames and buffers) and I never close it. Even though it has to restore a couple of dozen buffers and nearly that many frames it takes only a few seconds anyway.

As I am in Emacs anyway opening a file is very fast unless it's a really large file, multiple giga bytes.

Why would anyone close Emacs? Do you close the web browser too? What about X Windows?

Even without a server, modern Emacs can load quite swiftly by making use of deferred loading on demand. I stopped using an Emacs server some time ago because it loads fast enough, now.
I haven’t used Emacs in a few years and I don’t remember the startup time being a problem. Maybe because I always left it running?

Anyway, I looked up what people are saying these days. Looks like maybe a second or two?

https://www.reddit.com/r/emacs/comments/m8d55l/what_is_your_...

Setting up emacs server pretty much solves this problem as each subsequent launch uses the same running daemon. After that you just set up an alias that launches emacsclient like the following:

alias editor='emacsclient -t'

alias visual='emacsclient -c -a emacs'

Unfortunately, I don't expect to have emacs server running in an EC2 instance intended to run a company service since it needs to be a copy of prod instance (for testing/development). In such instances nano is helpful.
Ah, yes that is where tramp emacs package comes in handy, as it allows one to edit remote files within your local instance of emacs.

Note there is also helm-aws [https://github.com/istib/helm-aws] for managing AWS EC2 server instances directly from Emacs.

I like JED for that.