如何更改Emacs中的暂存消息?

unj*_*nj2 42 emacs

临时消息总是说:

;; This buffer is for notes you don't want to save, and for Lisp evaluation.
;; If you want to create a file, visit that file with C-x C-f,
;; then enter the text in that file's own buffer.
Run Code Online (Sandbox Code Playgroud)

如何删除此项并将空白临时消息设为默认值?

Tre*_*son 63

您可以将此变量自定义'initial-scratch-message为您想要的任何消息.

(setq initial-scratch-message "")
Run Code Online (Sandbox Code Playgroud)


Ash*_*hra 22

对于Emacs 23,您可以这样做:

(setq initial-scratch-message nil)
Run Code Online (Sandbox Code Playgroud)

从文档中:"初始消息在启动时显示在暂存缓冲区中.如果这是nil,则不会显示任何消息."