> 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/vi/co-so-tri-thuc/160-which-emacs-commands-are-usable-in-emacs-mode.md).

# Những lệnh emacs nào có thể dùng trong chế độ emacs?

Chế độ emacs (mà bạn có thể bật thông qua [trang cài đặt tài khoản của bạn](https://www.overleaf.com/users/edit)) đến từ một dự án mã nguồn mở tên là codemirror. Nó đang phát triển rất nhanh, nên còn thiếu một vài thứ, và hiện vẫn chưa có tài liệu chính thức nào cho nó.

Để xem những phím nào được hỗ trợ, hiện tại lựa chọn duy nhất là xem biến keyMap trong mã nguồn tại đây: <http://codemirror.net/keymap/emacs.js>

### Ctrl-N, Ctrl-T và Ctrl-W

Các trình duyệt thường sử dụng các tổ hợp phím của Emacs, bao gồm Ctrl-N, Ctrl-T và Ctrl-W, để mở hoặc đóng cửa sổ hay thẻ. Các trình duyệt này chặn các sự kiện trước khi chúng được gửi tới Overleaf, nên thật tiếc là chúng tôi không thể làm gì để thay đổi điều này.

Tùy vào trình duyệt và hệ điều hành của bạn, bạn có thể khắc phục tạm thời vấn đề này bằng cách gán lại các phím tắt của trình duyệt. Ví dụ, [có một tiện ích mở rộng cho Firefox](https://addons.mozilla.org/en-GB/firefox/addon/s3menu-wizard/) (và đó không phải là tiện ích duy nhất) cho phép bạn gán lại các tổ hợp phím đó để chúng không còn kích hoạt hành động trong trình duyệt nữa.

Cũng đáng lưu ý là các vấn đề với phím tắt Ctrl không ảnh hưởng đến các trình duyệt trên Mac OS, vốn thường dùng phím Command cho những chức năng đó.


---

# 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/vi/co-so-tri-thuc/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.
