How to avoid the message of “server-start” while opening another Emacs session?

前端 未结 1 1004
南旧
南旧 2021-02-05 06:32

I have a line (server-start) in my .emacs for some reasons. Everything is fine when I launch a first session of Emacs, but when I open anther session,

1条回答
  •  隐瞒了意图╮
    2021-02-05 07:16

    Try:

    (require 'server)
    (or (server-running-p)
        (server-start))
    

    Note that server-running-p does not appear in the manual, so conceivably this could break with future versions of Emacs.

    0 讨论(0)
提交回复
热议问题