如何让Emacs启动text-mode并删除以下消息?
;; 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)
zel*_*lio 24
要删除开始消息,只需将initial-scratch-message变量设置为""
(setq initial-scratch-message "")
Run Code Online (Sandbox Code Playgroud)
要在文本模式下启动暂存缓冲区,您需要initial-major-mode变量
(setq initial-major-mode 'text-mode)
Run Code Online (Sandbox Code Playgroud)
要在启动特定主模式时设置自动模式,您需要将事件添加到模式挂钩
(add-hook 'text-mode-hook 'turn-on-auto-fill)
Run Code Online (Sandbox Code Playgroud)