How do I change the scratch message in Emacs?

匿名 (未验证) 提交于 2019-12-03 02:45:02

问题:

The scratch message always says:

;; 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. 

How do I remove this and make the blank scratch message the default?

回答1:

You can customize this variable 'initial-scratch-message to be whatever message you want.

(setq initial-scratch-message "") 


回答2:

For Emacs 23, you can do this:

(setq initial-scratch-message nil) 

From the documentation: "Initial message displayed in scratch buffer at startup. If this is nil, no message will be displayed."



回答3:

You can turn off the initial splash screen with

(setq inhibit-startup-message t) 

this appears to also remove the initial message in the scratch buffer.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!