emacs-mirror/emacs has 2,051,551 source lines of code out of 2,929,489 total lines across 2,707 files, counted from the master ref at commit 3354d07e5f8d by the OctoCounts tokei engine on 2026-10-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-22 (commit 3354d07e5f8d), emacs-mirror/emacs contains 2,929,489 total lines: 2,051,551 code, 587,516 comments, 290,422 blank, across 2,707 files in 30 languages (top: Emacs Lisp 64.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving emacs-mirror/emacs to commit 3354d07e5f8d, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.
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 | 1639 | 1729479 | 1319663 | 231595 | 178221 |
| C | 341 | 595461 | 413050 | 106710 | 75701 |
| Lex | 1 | 175844 | 175844 | 0 | 0 |
| C Header | 253 | 84004 | 53295 | 20057 | 10652 |
| Objective-C | 8 | 26350 | 19173 | 3122 | 4055 |
| M4 | 151 | 19664 | 13208 | 5274 | 1182 |
| Autoconf | 32 | 16936 | 11368 | 3055 | 2513 |
| TeX | 24 | 14031 | 9152 | 2090 | 2789 |
| Java | 40 | 15157 | 8875 | 3480 | 2802 |
| C++ | 5 | 8264 | 6379 | 487 | 1398 |
| Shell | 22 | 4616 | 3055 | 964 | 597 |
| The WenYan Programming Language | 5 | 3212 | 2677 | 0 | 535 |
Top language (Emacs Lisp 64.3%). Generated at .
emacs-mirror/emacs has 2,929,489 total lines, including 2,051,551 code lines, 587,516 comment lines, and 290,422 blank lines.
OctoCounts resolved the public GitHub repository to commit 3354d07e5f8d, 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 3354d07e5f8d on 2026-10-22T05:54:18.513534392+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for emacs-mirror/emacs on this page — 2,051,551 code lines across 12 languages, counted by tokei.