# emacs-mirror/emacs SLOC report

> emacs-mirror/emacs: 2,052,694 code lines at commit e93f406bef02, counted with tokei-15.0.0 on 2026-11-16. Saved result 0ab74654f0238e912d151fb04267e9ffc28722a5d82fb26b905c5965ad0d90f2.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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 | 1,640 | 1,730,391 | 1,320,371 | 231,729 | 178,291 |
| C | 341 | 595,934 | 413,442 | 106,799 | 75,693 |
| Lex | 1 | 175,844 | 175,844 | 0 | 0 |
| C Header | 253 | 84,022 | 53,308 | 20,061 | 10,653 |
| Objective-C | 8 | 26,377 | 19,190 | 3,131 | 4,056 |
| M4 | 151 | 19,664 | 13,208 | 5,274 | 1,182 |
| Autoconf | 32 | 16,925 | 11,362 | 3,053 | 2,510 |
| TeX | 24 | 14,031 | 9,152 | 2,090 | 2,789 |
| Java | 40 | 15,157 | 8,875 | 3,480 | 2,802 |
| C++ | 5 | 8,264 | 6,379 | 487 | 1,398 |
| Shell | 23 | 4,641 | 3,074 | 970 | 597 |
| The WenYan Programming Language | 5 | 3,212 | 2,677 | 0 | 535 |
| XML | 23 | 2,197 | 1,717 | 358 | 122 |
| SVG | 46 | 1,860 | 1,710 | 131 | 19 |
| GNU Style Assembly | 6 | 1,774 | 1,619 | 132 | 23 |
| HTML | 5 | 1,588 | 1,564 | 1 | 23 |
| SRecode Template | 17 | 2,125 | 1,324 | 326 | 475 |
| Makefile | 19 | 1,987 | 1,115 | 512 | 360 |
| AWK | 13 | 1,446 | 991 | 285 | 170 |
| Forth | 1 | 1,232 | 940 | 0 | 292 |
| Perl | 1 | 1,231 | 931 | 0 | 300 |
| BASH | 11 | 3,459 | 927 | 2,060 | 472 |
| SystemVerilog | 1 | 1,180 | 885 | 0 | 295 |
| C# | 1 | 1,174 | 880 | 0 | 294 |
| Python | 3 | 925 | 624 | 148 | 153 |
| Batch | 3 | 431 | 409 | 0 | 22 |
| GDB Script | 1 | 288 | 172 | 75 | 41 |
| ReScript | 1 | 4 | 4 | 0 | 0 |
| Markdown | 3 | 50 | 0 | 38 | 12 |
| Plain Text | 31 | 213,529 | 0 | 206,622 | 6,907 |

Top language: Emacs Lisp 64.3%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/emacs-mirror/emacs/commit/e93f406bef02d9a855de15fcb9728248e8090885?reportId=0ab74654f0238e912d151fb04267e9ffc28722a5d82fb26b905c5965ad0d90f2&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/emacs-mirror/emacs/commit/e93f406bef02d9a855de15fcb9728248e8090885?reportId=0ab74654f0238e912d151fb04267e9ffc28722a5d82fb26b905c5965ad0d90f2&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does emacs-mirror/emacs have?

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.

### How was the emacs-mirror/emacs line count measured?

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.

### What commit was counted for emacs-mirror/emacs?

This OctoCounts report was generated from master at commit e93f406bef02 on November 16, 2026.

## Similar repository reports

- [idempiere/idempiere](https://octocounts.com/github/idempiere/idempiere) — SQL, 2,055,211 code lines
- [wszgrcy/vscode](https://octocounts.com/github/wszgrcy/vscode) — TypeScript, 2,047,718 code lines
- [beenuar/AiSOC](https://octocounts.com/github/beenuar/AiSOC) — JSON, 2,047,327 code lines
- [dabiziluzhu55/citypulse-v2x-sim](https://octocounts.com/github/dabiziluzhu55/citypulse-v2x-sim) — JSON, 2,060,853 code lines
- [aptos-labs/aptos-core](https://octocounts.com/github/aptos-labs/aptos-core) — Rust, 2,063,970 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Emacs vs Vim](https://octocounts.com/compare/emacs-vs-vim)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
