Skip to content

About

My emacs config.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

148 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Emacs Config

Personal Emacs configuration using Elpaca package manager with a modular architecture.

Installation

git clone https://github.com/vshender/.emacs.d ~/.emacs.d

On 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.

Dependencies

External programs the configuration relies on, grouped by area. Everything outside Core is optional: a missing tool only disables the corresponding feature.

Core

  • git - Version control. Used by Elpaca to fetch packages, by magit, and to clone tree-sitter grammars. Install via sudo pacman -S git (Arch) or xcode-select --install (macOS).

  • C compiler (gcc or clang) - Needed to compile tree-sitter grammars, which are installed automatically into var/tree-sitter/. Install via sudo pacman -S gcc (Arch) or xcode-select --install (macOS).

  • ripgrep - Fast recursive search tool. Used by consult-ripgrep for project-wide text search and by the MCP ripgrep server for LLM-assisted code search. Install via sudo pacman -S ripgrep (Arch) or brew install ripgrep (macOS).

  • JetBrainsMono Nerd Font (Linux) - Frame font; its Nerd Font glyphs also serve nerd-icons. Install via sudo pacman -S ttf-jetbrains-mono-nerd (Arch). On macOS the frame font is Menlo, so install the icon font with M-x nerd-icons-install-fonts.

Programming languages

C/C++

  • clangd - C/C++ language server (eglot's default for C modes). Install via sudo pacman -S clang (Arch) or brew install llvm (macOS).

OCaml

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 .ocamlformat file in the project.

  • ocp-indent - OCaml indentation tool. Used by ocp-indent mode for automatic indentation of OCaml code.

  • utop - Improved OCaml REPL. Used by utop mode for interactive evaluation from OCaml buffers.

Python

  • basedpyright - Python language server. Provides code completion, diagnostics, and navigation via eglot. Install via uv tool install basedpyright (any platform) or brew install basedpyright (macOS), or into the project's virtual environment.

  • ruff - Fast Python linter and formatter. Used by flymake-ruff for real-time linting. Install via uv tool install ruff (any platform), sudo pacman -S ruff (Arch), or brew install ruff (macOS), or into the project's virtual environment.

  • dasel - JSON/YAML/TOML query tool. Used by pet to parse Python project config files (pyproject.toml, etc.) for virtual environment detection. Install dasel from the AUR (Arch) or via brew install dasel (macOS).

Rust

  • 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 on PATH (as on Arch).

  • cargo - Used by cargo-minor-mode for build/test commands. Part of the Rust toolchain: install rustup via sudo pacman -S rustup (Arch) or brew install rustup (macOS), then run rustup default stable.

Web and data formats

  • 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) or brew install yaml-language-server (macOS).

  • jq - JSON processor. Used by jq-mode for interactive JSON filtering. Install via sudo pacman -S jq (Arch) or brew 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.

Documents and notes

  • pandoc - Universal document converter. Used by markdown-mode for document preview and export. Install via sudo pacman -S pandoc-cli (Arch) or brew install pandoc (macOS).

  • TeX Live and dvisvgm - LaTeX preview in Org (latex + dvisvgm). The preview preamble uses the fontenc (T2A), babel (russian), tikz, and algpseudocode packages. Install via sudo pacman -S texlive-basic texlive-latex texlive-langcyrillic texlive-pictures texlive-mathscience dvisvgm (Arch) or brew install --cask mactex (macOS; MacTeX includes dvisvgm).

  • poppler - PDF rendering library. Required to build and run epdfinfo, the server pdf-tools renders PDFs with. Building it also needs the autotools and pkg-config. Install via sudo pacman -S poppler-glib base-devel (Arch) or brew install poppler automake (macOS).

  • djvulibre - DjVu document tools. Required by djvu for rendering and editing DjVu files (ddjvu, djvused, djvm). Install via sudo pacman -S djvulibre (Arch) or brew install djvulibre (macOS).

  • unzip - Archive extraction utility. Required by nov for reading EPUB files (which are ZIP archives). Install via sudo pacman -S unzip (Arch); ships with macOS.

Notifications

  • libnotify (Linux) / terminal-notifier (macOS) - Desktop notification tools. Used by alert for sending desktop notifications (e.g., pomodoro timer events). Install via sudo pacman -S libnotify (Arch) or brew install terminal-notifier (macOS).

AI assistants

  • Claude Code CLI (claude) - Required by claude-code.el. Install claude-code from the AUR (Arch) or via brew install --cask claude-code (macOS).

  • Node.js (npx) and uv (uvx) - Run the MCP servers configured for mcp.el on demand: filesystem and ripgrep via npx, fetch and shell via uvx. Install via sudo pacman -S nodejs npm uv (Arch) or brew install node uv (macOS).

  • API keys for the gptel backends. See gptel documentation for details.

About

My emacs config.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages