Emacs takes unbelievably long to start

后端 未结 3 912
悲哀的现实
悲哀的现实 2021-01-12 07:27

Yesterday, I :q\'d Vim to try Emacs for a while. I\'ve started using Elisp (which is a hundred times better than VimScript), but even when I first installed it

3条回答
  •  滥情空心
    2021-01-12 08:22

    Okay, I have a (quirky and temporary) solution. I have to run dhclient em1 to access the internet, which makes Emacs take 30 seconds to load, probably because of some timeout. So, having already run dhclient em1, I use a shell script to launch Emacs that does the following:

    sudo pkill dhclient
    sudo ifconfig em1 down
    emacs -nw -daemon 2> /dev/null
    sudo ifconfig em1 up
    sudo dhclient em1
    

    That disables networking, launches Emacs as a daemon, and re-enables networking. It's ugly, but it works for now. If anybody else has a better answer, I'd be happy to hear it. Of course, em1 would have to be replaced by your Ethernet device (probably eth0, I guess).

提交回复
热议问题