> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/zh-cn/zhi-shi-ku/160-which-emacs-commands-are-usable-in-emacs-mode.md).

# 在 emacs 模式下可以使用哪些 emacs 命令？

Emacs 模式（你可以通过你的 [账户设置页面](https://www.overleaf.com/users/edit)) 来自一个名为 codemirror 的开源项目。它发展非常快，因此还缺少一些功能，而且目前还没有官方文档。

要查看支持哪些按键，目前唯一的办法是查看这里源码中的 keyMap 变量： <http://codemirror.net/keymap/emacs.js>

### Ctrl-N、Ctrl-T 和 Ctrl-W

浏览器经常使用 Emacs 也会用到的键组合，包括 Ctrl-N、Ctrl-T 和 Ctrl-W，来打开或关闭窗口或标签页。这些浏览器会在事件发送到 Overleaf 之前将其拦截，所以很遗憾，我们对此无能为力。

根据你的浏览器和操作系统不同，你或许可以通过重新映射浏览器的键盘快捷键来绕过这个问题。例如， [有一个 FireFox 扩展](https://addons.mozilla.org/en-GB/firefox/addon/s3menu-wizard/) （而且不止这一种）可以让你重新映射这些组合键，使其不再触发浏览器中的操作。

还值得注意的是，Ctrl 快捷键的问题不会影响 Mac OS 上的浏览器，因为它们通常使用 command 键来实现这些功能。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/zh-cn/zhi-shi-ku/160-which-emacs-commands-are-usable-in-emacs-mode.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
