[已解决]希望隐藏或关闭掉 Spacemacs 启动的界面

如下图所示,为 Spacemacs 每次启动时的界面,

希望将起隐藏起来,就像 @zilongshanren 的视频里说的关闭原生的 Emacs 启动欢迎界面

;; 关闭启动帮助画面
(setq inhibit-splash-screen 1)

将这段设置添加到 user-config 中不起左右,遂添加置 user-init 还是不起作用。

就想将这个显示的给关掉,问问大家有没有什么好的方法?

dotspacemacs-startup-lists nil 即可,仅显示欢迎界面,没有其他东西

如何开启后直接进入scratch buffer呢?

在启动界面按 q就能直接进入 scratch 了。 因为要显示报错等信息,要在一开始隐藏 home buffer必然要动 spacemacs 源码,会造成一些麻烦。

如果还是觉得麻烦,一个简单粗暴的办法是在配置文件对应的地方:

(defun dotspacemacs/user-config ()
  "Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place your code here."
  (quit-window)
    )

副作用是用SPC f e R的时候会退出 emacs。不过如果加上条件从句就应该可以解决。(我不怎么推荐去掉启动界面。可能你是想像纯粹的编辑器一样用 spacemacs,但是对硬件配置一般的机子推荐挂着一个 emacs 再用 emacsclient,而不是每次要用的时候重新开一个 emacs。这种情况下启动画面是否去掉是不重要的。)

1 个赞

wonderful!!!

能不能让spacemacs启动的时候,打开本地的一个文件?配置好了的spacemacs就不需要再看启动界面的报错之类的信息了。