本文介绍了在Emacs中重新打开* scratch *缓冲区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我不小心关闭Emacs中的 scratch 缓冲区,那么如何创建一个新的 scratch 缓冲区?

解决方案

GNU Emacs默认绑定:

或更详细地

* scratch * buffer是启动时选择的缓冲区,主要模式为。注意: * scratch * 缓冲区的模式由变量。



一般来说,您可以根据需要创建尽可能多的暂存缓冲区,并将其命名为

切换到缓冲区 NAME ,如果不存在则创建它。在您使用 (或 写入文件之前,新的缓冲区不与磁盘上的文件相关联/ code> )选择要保存的文件。

将当前缓冲区的主模式更改为文本模式。要查找所有可用的模式(也就是说,不需要任何新软件包),您可以输入以下内容来获取列表:


If I accidentally closed the scratch buffer in Emacs, how do I create a new scratch buffer?

解决方案

GNU Emacs default bindings:

or, more verbosely

The *scratch* buffer is the buffer selected upon startup, and has the major mode Lisp Interaction. Note: the mode for the *scratch* buffer is controlled by the variable initial-major-mode.

In general you can create as many "scratch" buffers as you want, and name them however you choose.

switches to a buffer NAME, creating it if it doesn't exist. A new buffer is not associated with a file on disk until you use (or write-file ) to choose a file where it should be saved.

changes the current buffer's major mode to Text mode. To find all the modes available (that is, without requiring any new packages), you can get a list by typing:

这篇关于在Emacs中重新打开* scratch *缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

06-12 14:54