emacs
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGNU Emacs
GNU Emacs
Emacs is an operating system masquerading as an editor. v29+ (2025) features built-in Eglot (LSP), Tree-sitter, and Native Compilation for speed.
Emacs是一款伪装成编辑器的操作系统。2025年发布的v29及以上版本内置了Eglot(LSP)、Tree-sitter和Native Compilation(原生编译)功能,大幅提升运行速度。
When to Use
适用场景
- Lisp Hackers: Configured in Elisp.
- Org Mode: The best note-taking/GTD system in existence.
- Magit: The best Git interface ever made.
- Lisp开发者:使用Elisp进行配置。
- Org Mode用户:目前最优秀的笔记记录/时间管理(GTD)系统。
- Git用户:拥有史上最佳Git界面Magit。
Core Concepts
核心概念
Buffers & Windows
缓冲区与窗口
Everything is a buffer (files, terminals, games). Windows display buffers.
所有内容都是缓冲区(文件、终端、游戏等),窗口用于显示缓冲区内容。
Key Chords
组合快捷键
C-x C-sM-xCtrlMetaC-x C-sM-xCtrlMetaOrg Mode
Org Mode
Structured plain text. Todos, tables, code execution (Babel).
结构化纯文本格式,支持待办事项、表格、代码执行(Babel)。
Best Practices (2025)
2025年最佳实践
Do:
- Use : The standard macro for tidy configuration.
use-package - Enable Native Comp: . Massive speedup.
(setq native-comp-async-report-warnings-errors nil) - Try Doom Emacs: A pre-configured distribution optimized for Vimmers (Evil mode).
Don't:
- Don't fear the pinky: Remap to
Caps Lockimmediately.Ctrl
建议:
- 使用:用于整洁配置的标准宏。
use-package - 启用原生编译:添加配置,可大幅提升速度。
(setq native-comp-async-report-warnings-errors nil) - 尝试Doom Emacs:针对Vim用户(Evil模式)优化的预配置发行版。
不建议:
- 不要担心小指劳损:立即将键映射为
Caps Lock键。Ctrl