Personal Emacs configuration using Elpaca package manager with a modular architecture.
git clone https://github.com/vshender/.emacs.d ~/.emacs.dOn first launch, Elpaca will automatically install all required packages, and any missing tree-sitter grammar is compiled at startup into var/tree-sitter/. pdf-tools builds its epdfinfo server later, when the first PDF is opened -- that PDF may fail to display while the build is still running, so reopen it afterwards. See Core and Documents and notes for the tools these builds need.
External programs the configuration relies on, grouped by area. Everything outside Core is optional: a missing tool only disables the corresponding feature.
-
git - Version control. Used by Elpaca to fetch packages, by
magit, and to clone tree-sitter grammars. Install viasudo pacman -S git(Arch) orxcode-select --install(macOS). -
C compiler (gcc or clang) - Needed to compile tree-sitter grammars, which are installed automatically into
var/tree-sitter/. Install viasudo pacman -S gcc(Arch) orxcode-select --install(macOS). -
ripgrep - Fast recursive search tool. Used by
consult-ripgrepfor project-wide text search and by the MCP ripgrep server for LLM-assisted code search. Install viasudo pacman -S ripgrep(Arch) orbrew install ripgrep(macOS). -
JetBrainsMono Nerd Font (Linux) - Frame font; its Nerd Font glyphs also serve
nerd-icons. Install viasudo pacman -S ttf-jetbrains-mono-nerd(Arch). On macOS the frame font is Menlo, so install the icon font withM-x nerd-icons-install-fonts.
- clangd - C/C++ language server (eglot's default for C modes).
Install via
sudo pacman -S clang(Arch) orbrew install llvm(macOS).
OCaml tooling is installed via opam:
opam install ocaml-lsp-server ocamlformat ocp-indent utop-
ocaml-lsp-server - OCaml language server. Provides code completion, diagnostics, and navigation via eglot and
ocaml-eglot. -
ocamlformat - OCaml code formatter. Used by ocaml-lsp-server (through
ocamlformat-rpc) to pretty-print type signatures shown on hover. Code formatting itself is only invoked explicitly (eglot-format) and requires an.ocamlformatfile in the project. -
ocp-indent - OCaml indentation tool. Used by
ocp-indentmode for automatic indentation of OCaml code. -
utop - Improved OCaml REPL. Used by
utopmode for interactive evaluation from OCaml buffers.
-
basedpyright - Python language server. Provides code completion, diagnostics, and navigation via eglot. Install via
uv tool install basedpyright(any platform) orbrew install basedpyright(macOS), or into the project's virtual environment. -
ruff - Fast Python linter and formatter. Used by
flymake-rufffor real-time linting. Install viauv tool install ruff(any platform),sudo pacman -S ruff(Arch), orbrew install ruff(macOS), or into the project's virtual environment. -
dasel - JSON/YAML/TOML query tool. Used by
petto parse Python project config files (pyproject.toml, etc.) for virtual environment detection. Installdaselfrom the AUR (Arch) or viabrew install dasel(macOS).
-
rust-analyzer - Rust language server, run with clippy for diagnostics. Install via
rustup component add rust-analyzer; the configuration also finds the rustup-managed binary when it is not onPATH(as on Arch). -
cargo - Used by
cargo-minor-modefor build/test commands. Part of the Rust toolchain: installrustupviasudo pacman -S rustup(Arch) orbrew install rustup(macOS), then runrustup default stable.
-
vscode-html-languageserver - HTML language server. Provides completion, hover documentation, and formatting for HTML files. Install via
sudo pacman -S vscode-html-languageserver(Arch). -
vscode-css-languageserver - CSS language server. Provides completion, diagnostics, and color previews for CSS/SCSS/LESS files. Install via
sudo pacman -S vscode-css-languageserver(Arch). -
vscode-json-languageserver - JSON language server. Provides schema validation, completion, and diagnostics for JSON/JSONC files. Install via
sudo pacman -S vscode-json-languageserver(Arch). -
yaml-language-server - YAML language server. Provides schema validation, completion, and diagnostics for YAML files. Install via
sudo pacman -S yaml-language-server(Arch) orbrew install yaml-language-server(macOS). -
jq - JSON processor. Used by
jq-modefor interactive JSON filtering. Install viasudo pacman -S jq(Arch) orbrew install jq(macOS).
Note: outside Arch, the vscode-*-languageserver servers above are shipped by the npm package vscode-langservers-extracted, whose executables are named vscode-*-language-server (with a hyphen); the configuration expects the Arch names.
-
pandoc - Universal document converter. Used by
markdown-modefor document preview and export. Install viasudo pacman -S pandoc-cli(Arch) orbrew install pandoc(macOS). -
TeX Live and dvisvgm - LaTeX preview in Org (
latex+dvisvgm). The preview preamble uses thefontenc(T2A),babel(russian),tikz, andalgpseudocodepackages. Install viasudo pacman -S texlive-basic texlive-latex texlive-langcyrillic texlive-pictures texlive-mathscience dvisvgm(Arch) orbrew install --cask mactex(macOS; MacTeX includesdvisvgm). -
poppler - PDF rendering library. Required to build and run
epdfinfo, the serverpdf-toolsrenders PDFs with. Building it also needs the autotools and pkg-config. Install viasudo pacman -S poppler-glib base-devel(Arch) orbrew install poppler automake(macOS). -
djvulibre - DjVu document tools. Required by
djvufor rendering and editing DjVu files (ddjvu,djvused,djvm). Install viasudo pacman -S djvulibre(Arch) orbrew install djvulibre(macOS). -
unzip - Archive extraction utility. Required by
novfor reading EPUB files (which are ZIP archives). Install viasudo pacman -S unzip(Arch); ships with macOS.
- libnotify (Linux) / terminal-notifier (macOS) - Desktop notification tools.
Used by
alertfor sending desktop notifications (e.g., pomodoro timer events). Install viasudo pacman -S libnotify(Arch) orbrew install terminal-notifier(macOS).
-
Claude Code CLI (
claude) - Required byclaude-code.el. Installclaude-codefrom the AUR (Arch) or viabrew install --cask claude-code(macOS). -
Node.js (
npx) and uv (uvx) - Run the MCP servers configured formcp.elon demand: filesystem and ripgrep vianpx, fetch and shell viauvx. Install viasudo pacman -S nodejs npm uv(Arch) orbrew install node uv(macOS). -
API keys for the gptel backends. See gptel documentation for details.