# emacs-mirror/emacs SLOC report

> As of 2026-08-26 (commit b28750b822dc), emacs-mirror/emacs contains 2,924,491 total lines: 2,048,677 code, 585,428 comments, 290,386 blank, across 2,704 files in 30 languages (top: Emacs Lisp 64.3%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving emacs-mirror/emacs to commit b28750b822dc, 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.1% of all lines, comments represent 20.0%, 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,638 | 1,727,443 | 1,318,016 | 231,382 | 178,045 |
| C | 340 | 594,079 | 412,082 | 106,376 | 75,621 |
| Lex | 1 | 175,844 | 175,844 | 0 | 0 |
| C Header | 252 | 83,799 | 53,176 | 19,983 | 10,640 |
| Objective-C | 8 | 26,323 | 19,149 | 3,120 | 4,054 |
| M4 | 151 | 19,472 | 13,105 | 5,202 | 1,165 |
| Autoconf | 32 | 16,911 | 11,357 | 3,045 | 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-08-26T18:19:24.776938375+00:00. Canonical report: https://octocounts.com/github/emacs-mirror/emacs

## Report FAQ

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

emacs-mirror/emacs has 2,924,491 total lines, including 2,048,677 code lines, 585,428 comment lines, and 290,386 blank lines.

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

OctoCounts resolved the public GitHub repository to commit b28750b822dc, 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 b28750b822dc on 2026-08-26T18:19:24.776938375+00:00.

## Similar repository reports

- [wszgrcy/vscode](https://octocounts.com/github/wszgrcy/vscode) — TypeScript, 2,047,718 code lines
- [golang/go](https://octocounts.com/github/golang/go) — Go, 2,054,516 code lines
- [mattermost/mattermost](https://octocounts.com/github/mattermost/mattermost) — Go, 2,063,616 code lines
- [apache/Beam](https://octocounts.com/github/apache/Beam) — Java, 2,064,680 code lines
- [Open-Cascade-SAS/OCCT](https://octocounts.com/github/Open-Cascade-SAS/OCCT) — C++, 2,123,951 code lines
- [tsirysndr/rockbox-zig](https://octocounts.com/github/tsirysndr/rockbox-zig) — C, 1,965,584 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
