# emacs-mirror/emacs SLOC report

> emacs-mirror/emacs: 2,052,994 code lines at commit 3925ba88fe31, counted with tokei-15.0.0 on 2026-11-24. Saved result 41b3179605311218628704bdeedcb11bc52674ad879790a7e3e090e1498e21af.

Source: [emacs-mirror/emacs on GitHub](https://github.com/emacs-mirror/emacs) · counted commit [3925ba88fe31](https://github.com/emacs-mirror/emacs/tree/3925ba88fe31492e7110b880237c43bf28b487bf)

emacs-mirror/emacs has 2,052,994 source lines of code out of 2,931,407 total lines across 2,709 files, counted with tokei from the master ref at commit 3925ba88fe31 on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving emacs-mirror/emacs to commit 3925ba88fe31, 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,516 | 1,320,478 | 231,737 | 178,301 |
| C | 341 | 596,078 | 413,533 | 106,830 | 75,715 |
| Lex | 1 | 175,844 | 175,844 | 0 | 0 |
| C Header | 253 | 84,085 | 53,334 | 20,096 | 10,655 |
| Objective-C | 8 | 26,377 | 19,190 | 3,131 | 4,056 |
| M4 | 151 | 19,796 | 13,281 | 5,318 | 1,197 |
| Autoconf | 32 | 16,925 | 11,363 | 3,053 | 2,509 |
| 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,642 | 3,076 | 970 | 596 |
| 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 24, 2026. Canonical report: https://octocounts.com/github/emacs-mirror/emacs/commit/3925ba88fe31492e7110b880237c43bf28b487bf?reportId=41b3179605311218628704bdeedcb11bc52674ad879790a7e3e090e1498e21af&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/3925ba88fe31492e7110b880237c43bf28b487bf?reportId=41b3179605311218628704bdeedcb11bc52674ad879790a7e3e090e1498e21af&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,994 lines of code, plus 587,880 comment lines and 290,533 blank lines, for 2,931,407 total lines at commit 3925ba88fe31 on November 24, 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 3925ba88fe31, 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 3925ba88fe31 on November 24, 2026.

## Similar repository reports

- [CeleritasCelery/rune](https://octocounts.com/github/CeleritasCelery/rune) — Emacs Lisp, 71,965 code lines
- [can1357/oh-my-pi](https://octocounts.com/github/can1357/oh-my-pi) — TypeScript, 2,050,827 code lines
- [idempiere/idempiere](https://octocounts.com/github/idempiere/idempiere) — SQL, 2,056,799 code lines
- [wszgrcy/vscode](https://octocounts.com/github/wszgrcy/vscode) — TypeScript, 2,047,718 code lines
- [dabiziluzhu55/citypulse-v2x-sim](https://octocounts.com/github/dabiziluzhu55/citypulse-v2x-sim) — JSON, 2,060,853 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [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)
