emacs-mirror/emacs has 2,052,694 source lines of code out of 2,930,942 total lines across 2,709 files, counted with tokei from the master ref at commit e93f406bef02 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit e93f406bef02), emacs-mirror/emacs contains 2,930,942 total lines: 2,052,694 code, 587,762 comments, 290,486 blank, across 2,709 files in 30 languages (top language: Emacs Lisp 64.3%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving emacs-mirror/emacs to commit e93f406bef02, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a very large codebase by counted code lines. Code represents 70.0% of all lines, comments represent 20.1%, and the repository averages 758 code lines per file. Emacs Lisp accounts for 64.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Emacs Lisp | 1640 | 1730391 | 1320371 | 231729 | 178291 |
| C | 341 | 595934 | 413442 | 106799 | 75693 |
| Lex | 1 | 175844 | 175844 | 0 | 0 |
| C Header | 253 | 84022 | 53308 | 20061 | 10653 |
| Objective-C | 8 | 26377 | 19190 | 3131 | 4056 |
| M4 | 151 | 19664 | 13208 | 5274 | 1182 |
| Autoconf | 32 | 16925 | 11362 | 3053 | 2510 |
| TeX | 24 | 14031 | 9152 | 2090 | 2789 |
| Java | 40 | 15157 | 8875 | 3480 | 2802 |
| C++ | 5 | 8264 | 6379 | 487 | 1398 |
| Shell | 23 | 4641 | 3074 | 970 | 597 |
| The WenYan Programming Language | 5 | 3212 | 2677 | 0 | 535 |
Top language: Emacs Lisp 64.3%. Generated on .
emacs-mirror/emacs: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
emacs-mirror/emacs has 2,052,694 lines of code, plus 587,762 comment lines and 290,486 blank lines, for 2,930,942 total lines at commit e93f406bef02 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit e93f406bef02, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit e93f406bef02 on November 16, 2026.
Play the growth animation for emacs-mirror/emacs on this page — 2,052,694 code lines across 30 languages, counted by tokei.