我怎样才能让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.发布于 2012-04-12 00:32:16
要删除启动消息,只需将initial-scratch-message变量设置为""
(setq initial-scratch-message "")要在文本模式下启动临时缓冲区,您需要使用initial-major-mode变量
(setq initial-major-mode 'text-mode)对于自动模式的设置,当你启动一个特定的大调模式时,你需要在模式钩子中添加一个事件
(add-hook 'text-mode-hook 'turn-on-auto-fill)发布于 2012-04-12 21:48:42
我建议您使用文件参数打开Emacs,而不是摆弄暂存缓冲区的工作方式。例如,如果你做了"emacs foo.txt“,它很有可能已经在文本模式下启动了,而你不需要为此做任何特殊的事情。
发布于 2015-10-18 07:13:11
您只需在临时缓冲区中执行M-x文本模式。就这样。
https://stackoverflow.com/questions/10110027
复制相似问题