抑制启动画面

时间:2018-12-24 06:36:21

标签: debugging emacs

我想隐藏启动画面并进行设置

$ cat ~/.emacs

;Do not display the splash screen
(setqinhibit-startup-screen t)

但是,它不能正常工作。

发出emacs时,仍然会提示

Welcome to GNU Emacs, a part of the GNU operating system.

Get help           C-h  (Hold down CTRL and press h)
Emacs manual       C-h r        Browse manuals     C-h i
Emacs tutorial     C-h t        Undo changes       C-x u
Buy manuals        C-h RET      Exit Emacs         C-x C-c

报告错误

Debugger entered--Lisp error: (void-function setqinhibit-startup-screen)
  (setqinhibit-startup-screen t)
  eval-buffer(#<buffer  *load*> nil "/Users/gaowei/.emacs" nil t)  ; Reading at$
  load-with-code-conversion("/Users/gaowei/.emacs" "/Users/gaowei/.emacs" t t)
  load("~/.emacs" t t)
  #f(compiled-function () #<bytecode 0x4009e8d9>)()
  command-line()
  normal-top-level()

如何正确抑制它?

1 个答案:

答案 0 :(得分:3)

setqinhibit-startup-screen之间必须有一个空格。

错误消息告诉我们没有setqinhibit-startup-screen这样的东西;并且,这是因为函数为setq而变量为inhibit-startup-screen