emacs 加载restart-emacs插件 不生效


(use-package restart-emacs)

, 当我打开emacs的时候,右边的窗口就提示我 Error (use-package): Failed to install restart-emacs: Package ‘restart-emacs-’ is unavailable.

请教一下, 这个是说我的源有问题,还是命令错了?

Emacs 29 自带 restart-emacs 命令。

restart-emacs is an interactive byte-compiled Lisp function in


Kill the current Emacs process and start a new one.
This goes through the same shutdown procedure as
‘save-buffers-kill-emacs’, but instead of killing Emacs and
exiting, it re-executes Emacs (using the same command line
arguments as the running Emacs).

  Probably introduced at or before Emacs version 29.1.
1 个赞