# emacs-mirror/emacs SLOC report

> As of 2026-09-22 (commit f56478a7c3fb), emacs-mirror/emacs contains 2,926,826 total lines: 2,049,654 code, 586,917 comments, 290,255 blank, across 2,705 files in 30 languages (top: Emacs Lisp 64.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

emacs-mirror/emacs has 2,049,654 source lines of code out of 2,926,826 total lines across 2,705 files, counted from the master ref at commit f56478a7c3fb by the OctoCounts tokei engine on 2026-09-22. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving emacs-mirror/emacs to commit f56478a7c3fb, 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.

## 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,639 | 1,728,088 | 1,318,561 | 231,394 | 178,133 |
| C | 340 | 594,456 | 412,356 | 106,453 | 75,647 |
| Lex | 1 | 175,844 | 175,844 | 0 | 0 |
| C Header | 252 | 83,897 | 53,272 | 19,982 | 10,643 |
| Objective-C | 8 | 26,338 | 19,161 | 3,122 | 4,055 |
| M4 | 151 | 19,541 | 13,157 | 5,213 | 1,171 |
| Autoconf | 32 | 16,919 | 11,358 | 3,052 | 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 | 22 | 4,611 | 3,050 | 964 | 597 |
| The WenYan Programming Language | 5 | 3,212 | 2,677 | 0 | 535 |

Top language (Emacs Lisp 64.3%). Generated at 2026-09-22T14:50:49.928847108+00:00. Canonical report: https://octocounts.com/github/emacs-mirror/emacs

## Reproduce this report

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

## Report FAQ

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

emacs-mirror/emacs has 2,926,826 total lines, including 2,049,654 code lines, 586,917 comment lines, and 290,255 blank lines.

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

OctoCounts resolved the public GitHub repository to commit f56478a7c3fb, 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 f56478a7c3fb on 2026-09-22T14:50:49.928847108+00:00.

## Similar repository reports

- [meow-edit/meow](https://octocounts.com/github/meow-edit/meow) — Emacs Lisp, 7,983 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,053,525 code lines
- [tsirysndr/rockboxd](https://octocounts.com/github/tsirysndr/rockboxd) — C, 2,041,434 code lines
- [tsirysndr/rockbox-zig](https://octocounts.com/github/tsirysndr/rockbox-zig) — C, 2,061,816 code lines
- [pytorch/executorch](https://octocounts.com/github/pytorch/executorch) — JSON, 2,067,227 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)
- [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)
