我启动了 Spacemacs 并尝试运行
emacs --daemon
触摸服务器。但这不是工作。这是消息。
>emacs --daemon
Loading c:/Tools/emacs/.spacemacs.d/init.el (source)...
Loading c:/Tools/emacs/.spacemacs.d/init.el (source)...done
(Spacemacs) Warning: More than one init function found for package symbol-overlay. Previous owner was spacemacs-navigation, replacing it with layer zilongshanren-misc.
Auto-evilification could not remap these functions in map ?dired-mode-map?:
- ?dired-do-chgrp? originally mapped on ?G?
~/share/emacs/26.1/lisp/progmodes/cc-align.elc:Warning: reference to free
variable ?langelem?
Spacemacs is ready.
Loading c:/Tools/emacs/.emacs.d/.cache/recentf...
Loading c:/Tools/emacs/.emacs.d/.cache/recentf...done
Skipping check for new version (reason: dotfile)
Emacs 每次都会卡在这里,几分钟后就会出现这个消息。
Buffer recentf modified; kill anyway? (y or n) Buffer recentf modified; kill anyway? (y or n)
即使我按“y”或“n”,程序也会卡在这里。
答案1
无需先启动 spacemacs:
emacs --daemon
启动一个后台服务器,之后您需要使用以下命令通过客户端访问该服务器:
emacsclient <filenane>
如需更多信息,请访问https://www.emacswiki.org/emacs/EmacsClient
如果您已经启动了 GUI Spacemacs 应用程序:
您需要在 Spacemacs 中运行该命令 - 按M-:
( Alt
+ :
) 并
(server-start)
然后emacsclient <filename>
从终端。