> 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-tw/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-tw/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.
