自定义选项initial-buffer-choice
。将其设置为您选择的缓冲区的名称,而不是缓冲区的默认值nil
或。t
*scratch*
,----
| initial-buffer-choice is a variable defined in `startup.el'.
| Its value is nil
|
| Documentation:
| Buffer to show after starting Emacs.
| If the value is nil and `inhibit-startup-screen' is nil, show the
| startup screen. If the value is a string, switch to a buffer
| visiting the file or directory specified by that string. If the
| value is a function, switch to the buffer returned by that
| function. If t, open the `*scratch*' buffer.
|
| A string value also causes emacsclient to open the specified file
| or directory when no target file is specified.
|
| You can customize this variable.
|
| This variable was introduced, or its default value was changed, in
| version 24.4 of Emacs.
`----
(该文档字符串来自最近的 Emacs 开发快照。Emacs 24.3. 文档字符串略有不同。)