neomacs README

README проекта с github.com/eval-exec/neomacs. Одним файлом markdown: README.md.

"I started Neomacs because I love Emacs, I respect Emacs, and I want to evolve the legendary Emacs into the ultimate modern powerhouse." — Eval Exec

✨ "While other editors can save your files, only Emacs can save your soul." ✨

NEOMACS — Next generation of Emacs

Emacs, rewritten in Rust — unleashed on the GPU, fixing what 40 years of C never could.
Built for 100% compatibility with the Emacs ecosystem you already have — your config, your packages, your muscle memory.

CI Latest release Downloads License: GPL-3.0 Discussions X: Eval-Exec Sponsor NEO Emacs

Install · Showcase · Animations · Architecture · FAQ · Discussions

NEO Emacs keeps everything that makes Emacs Emacs — your init.el, your packages, your muscle memory — and rebuilds the machinery underneath: the display engine runs on the GPU, and the ~300,000-line C core is reimplemented in Rust. GNU Emacs itself serves as the test oracle, so every rewritten subsystem is verified to behave identically. (Why rewrite Emacs?)

[!IMPORTANT] NEO Emacs is a work in progress. Expect rough edges, breaking changes, and missing features — bug reports are very welcome.

[!NOTE] NEO Emacs is a hard fork of GNU Emacs (Lisp tree synced to emacs-31.1). The C core has been fully replaced by Rust. Fork provenance and rationale: FAQ.

Generational garbage collection (GEN1) is enabled by default. Set NEOVM_GC_GENERATIONAL=0 to opt out and use full-heap collection (GEN0). An unset or empty value keeps GEN1 enabled.

Showcase

Latest videos

Watch more demos and development updates on YouTube Eval Exec's YouTube channel.

NEO Emacs: Animated Buffer Transitions NEO Emacs (WIP) v0.0.14 released, still in it's early development NEO Emacs (WIP) is developing GPU Shader

Feature demos

Cursor, buffer-switch, and scroll animations — GPU-rendered at display refresh rate:

https://github.com/user-attachments/assets/85b7ee7b-3f4a-4cd2-a84f-86a91d052f11

More: 4K video, inline browser, inline terminal, rounded box faces…

Inline 4K Video Playback — DMA-BUF zero-copy, GPU backend

https://github.com/user-attachments/assets/275c6d9a-fced-44f6-8f43-3bbd2984d672

Inline 4K Images — GPU-decoded, won't block the Emacs main thread

Inline 4K images in Emacs buffer

Inline Web Browser (WPE WebKit) — GPU backend, DMA-BUF zero-copy

Inline WPE WebKit browser in Emacs buffer

Inline Terminal (Alacritty) — GPU-backed terminal embedded in a buffer

Inline Alacritty terminal in Emacs buffer

GPU Text with Rounded Box Faces

Round corner box face attribute

Highlights

Install

Prefer system packages? Download them from Releases:

Platform Packages
Linux .deb · .rpm · tarball · AppImage (x86_64, aarch64)
macOS (experimental) .dmg · .zip · .tar.gz (Apple Silicon)
Windows (experimental) installer .exe · portable .zip (x86_64, aarch64)

On macOS, Homebrew users can install and upgrade from the project tap; the cask selects the Apple Silicon or Intel build automatically and puts neomacs and neomacsclient on the PATH:

brew install --cask neomacs-core/tap/neomacs

On Gentoo (amd64), the community-maintained neomacs-gentoo overlay builds Neomacs from source as app-editors/emacs:31-neomacs, in a separate slot alongside GNU Emacs. It requires app-eselect/eselect-repository; the ebuild is currently keyworded ~amd64, so accept that keyword for this package if needed before emerging:

sudo eselect repository add neomacs-gentoo git https://github.com/xz-dev/neomacs-gentoo.git
sudo emaint sync -r neomacs-gentoo
sudo emerge --ask app-editors/emacs:31-neomacs
sudo eselect emacs set emacs-31-neomacs

The overlay maintains its own snapshots, independently of upstream release tags. Keep GNU Emacs installed for rollback; use eselect emacs list to find its selector and sudo eselect emacs set <selector> to switch back. See the overlay documentation for current limitations, including the lack of emacsclient.

On Windows, launch runneomacs.exe for the GUI without a console window. Installer shortcuts use this launcher. Use neomacs.exe from a terminal for -nw, --batch, redirected output, and shell exit status.

For terminal, batch, and Linux container deployments, the complete application is also published for amd64 and arm64 on evalexec/neomacs and ghcr.io/eval-exec/neomacs. See the Docker guide.

The Linux product links the system GStreamer runtime and provides video. Every Linux artifact carries it: the .deb and .rpm declare the dependency, and the AppImage bundles that closure, though codec plugin families still come from the host.

The .rpm is built inside an el9 container, so it installs on RHEL 9, Rocky, Alma and Fedora 43+ — a package built on Ubuntu cannot, because rpmbuild records the build host's ncurses and glibc symbol versions as requirements. See releasing-linux.md.

The .deb and the Linux tarball of v0.0.20 and earlier recorded the build account's uid as the owner of their files, so installing them as root (dpkg -i, a manual tar -x into /usr/local, or install.sh --prefix before this was fixed) left the dump and the Lisp tree (and, for the .deb, /usr/bin/neomacs) owned by that uid, rewritable by any local account holding it. A fixed .deb refuses to install over such an installation until it is repaired; to repair it, see releasing-linux.md.

Build from source
git clone https://github.com/eval-exec/neomacs && cd neomacs

# Optional (recommended): repo dev shell with all dependencies
nix develop --accept-flake-config

# Compiles Rust, bootstraps Elisp, generates the portable dump and Info manuals
cargo xtask fresh-build --release

./target/release/neomacs

fresh-build is incremental by default, like GNU's plain make: it rebuilds only what a staleness predicate selects (a warm tree takes seconds). That includes the Info manuals: a manual is compiled again when one of its prerequisites changed, or when a file published for it is missing or was altered, and every manual is when the record of what the published set was built from is missing or invalid. Pass --bootstrap-clean to remove every .elc and generated Lisp source first and to recompile every manual, as GNU's make bootstrap does; with --no-byte-compile it keeps the Lisp bytecode and still recompiles every manual. A default build that escalates to --bootstrap-clean because its bootstrap inputs changed recompiles every manual as well. fresh-build --check reports which Lisp files a build would recompile, without writing anything.

Run Cargo commands from within the checkout (normally its root). Cargo discovers .cargo/config.toml from the invocation directory; Neomacs uses that config to provide member crates with the repository root for shared Lisp and test assets.

Platform dependencies (Arch, macOS, Nix/Cachix) and the test suites: docs/building.md.

Status

Area State
100% GNU Emacs compatibility (oracle test suites) 🚧 ~95%, closing the last gaps
JIT compilation + inline caching for Elisp 🚧 working, profiling and improving
zero pause GC 🚧 maturing
Elisp-hackable frontend — GPU shaders, surfaces 🚧 early, expanding
Rust Elisp runtime — evaluator, bytecode VM, portable dump 🚧 refactoring, testing, improving
GPU display + layout engine (replaces xdisp.c) 🚧 early, improving
Inline images, 4K video, WebKit browser 🚧 works today, experimental, improving
High-performance neo-term (GPU terminal) 🚧 in development
Cursor / scroll / buffer-switch animations 🚧 polishing, catalog growing
Performance 🔬 profiling, benchmarking, tuning
True multi-threaded Elisp 🔬 designing, researching, experimental attempts
TUI renderer (neomacs -nw) 🚧 usable, polishing
Cross-platform support 🚧 Linux & macOS first; Windows awaiting testing; WASM, Android & iOS planned

Architecture

Everything runs in Rust across two threads — the Emacs thread owns the Elisp runtime and editor state, the render thread owns the GPU.

Design principles, the full module map, and why Rust/wgpu: docs/ARCHITECTURE.md.


❤️ Sponsoring ❤️

NEO Emacs is a long-term project that takes significant ongoing work to build, test, and maintain. If NEO Emacs is useful or exciting to you, please consider supporting its development on:

BTC (Bitcoin) Ethereum — ETH · USDC · any ERC-20
Bitcoin (BTC) donation QR code Ethereum donation QR code (ETH, USDC and other ERC-20 tokens)
bc1p0y3fzffqrqw08k8nc2ge3dfj02hr22ku8nugnc04ek522gty9kjsyy8lgc 0xF5e8493b611F8D4c07850C2cC77b38dD632620F2

Acknowledgments

Built with wgpu · winit · cosmic-text — cursor animations inspired by Neovide.

License

GNU General Public License v3.0 (same as Emacs)

neomacs (eval-exec/neomacs)

Ищем в базе…

Что это такое?NEO Emacs — это GNU Emacs, переписанный на Rust с современным GPU-движком отрисовки: C-ядро примерно на 300 000 строк заменено на безопасную по памяти реализацию на Rust, цель — 100% совместимость с Emacs и десятикратный рост производительности.
Это плагин к моему текущему Emacs или отдельный редактор, который я буду ставить рядом с ним?Это отдельная самостоятельная программа, а не дополнение: это жёсткий форк GNU Emacs, чьё Elisp-дерево синхронизировано с emacs-31.1, а всё, что ниже Lisp-слоя, заново написано на Rust. Вы запускаете его вместо своего текущего Emacs.
Как установить его на свой компьютер?Возьмите пакет со страницы GitHub Releases: .deb/.rpm/tarball/AppImage на Linux, .dmg или .zip на macOS (Apple Silicon), установщик .exe или портативный .zip на Windows. Есть также Docker-образы и сборка из исходников через Cargo.
Нужно ли мне ставить Rust или какие-то системные библиотеки, чтобы оно вообще заработало?Для готовых пакетов — нет, они работают сразу после скачивания. На Linux редактор подключает системный GStreamer для встроенного видео, кодеки берутся из системы; Rust-тулчейн нужен только при сборке из исходников.
Можно ли уже использовать его как основной редактор на каждый день, или он ещё слишком сырой?Автор прямо говорит, что проект в разработке: будьте готовы к шероховатостям, ломающим изменениям и недостающим возможностям. Сборки для macOS и Windows экспериментальные, а такие части, как GC без пауз и многопоточный Elisp, ещё созревают.
Он работает только как приложение с графическим интерфейсом, или можно пользоваться и в терминале?И то и другое делает один и тот же бинарник: окно с GPU-отрисовкой или сессия в терминале через neomacs -nw. TUI-рендерер уже вполне рабочий, хотя его ещё доводят до ума.
Ему нужна мощная видеокарта или обычного ноутбука хватит?Отрисовка идёт через wgpu, который работает поверх Vulkan, Metal, DirectX 12 или OpenGL, поэтому достаточно встроенной графики — а в режиме терминала видеокарта вообще не нужна.
Он правда умеет показывать видео, картинки и веб-страницы прямо внутри буфера?Да — буферы могут встраивать видео в 4K, изображения с GPU-декодированием, браузер на WPE WebKit и GPU-терминал, причём благодаря DMA-BUF с нулевым копированием медиа остаются на видеокарте, и основной поток не блокируется.
Мой существующий init.el, пакеты и раскладка клавиш продолжат работать?Именно это и заявлено: цель — 100% совместимость с GNU Emacs, сейчас около 95%, и разрыв сокращается. Каждую переписанную подсистему сверяют с GNU Emacs как с эталоном, а реальные конфиги вроде Doom Emacs служат ежедневным полигоном для тестов.
Насколько глубже его можно настраивать по сравнению со стандартным Emacs?Глубже: в GNU Emacs расширяемость упирается в C-движок отрисовки, а в NEO Emacs весь фронтенд открыт для Elisp — вплоть до эффектов отрисовки и GPU-шейдеров на WGSL.
Зачем переписывать Emacs на Rust, если можно просто пользоваться GNU Emacs?Автор любит Emacs и хочет превратить его в «абсолютную современную мощь»: GPU-отрисовка и чистое, безопасное по памяти ядро на Rust уже есть, а по-настоящему многопоточный Elisp и GC без пауз — в планах.
Какие есть похожие проекты?glacex, neovide, spacemacs, helix, vim, Raven, awesome-neovim, neovim
Автор
eval-exec
Размер
269.5 MB
Звёзды
1.8K
Возраст
9 мес
Коммиты · 90 дней