emacs

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

GNU 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-sitterNative 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-s
(Save).
M-x
(Execute command). Emacs relies heavily on
Ctrl
and
Meta
(Alt/Option).
C-x C-s
(保存)、
M-x
(执行命令)。Emacs大量依赖
Ctrl
Meta
(Alt/Option)键。

Org Mode

Org Mode

Structured plain text. Todos, tables, code execution (Babel).
结构化纯文本格式,支持待办事项、表格、代码执行(Babel)。

Best Practices (2025)

2025年最佳实践

Do:
  • Use
    use-package
    : The standard macro for tidy configuration.
  • Enable Native Comp:
    (setq native-comp-async-report-warnings-errors nil)
    . Massive speedup.
  • Try Doom Emacs: A pre-configured distribution optimized for Vimmers (Evil mode).
Don't:
  • Don't fear the pinky: Remap
    Caps Lock
    to
    Ctrl
    immediately.
建议
  • 使用
    use-package
    :用于整洁配置的标准宏。
  • 启用原生编译:添加配置
    (setq native-comp-async-report-warnings-errors nil)
    ,可大幅提升速度。
  • 尝试Doom Emacs:针对Vim用户(Evil模式)优化的预配置发行版。
不建议
  • 不要担心小指劳损:立即将
    Caps Lock
    键映射为
    Ctrl
    键。

References

参考资料