Managing an Emacs config across multiple devices was becoming a pain, so this repo uses chezmoi to keep everything in sync across Windows, Linux, and macOS. Cloning on a new machine and running chezmoi apply handles package installation, fonts, LSP servers, and editor configuration automatically.
Make sure chezmoi is installed and on your PATH, then run:
chezmoi init git@github.com:lukasvarhol/dotfiles.git
chezmoi applyTo pull and apply the latest changes:
chezmoi updateEmacs
- Language support via Eglot (LSP) and associated language servers:
- C/C++
- CMake
- Go
- Java
- JavaScript
- Powershell (no language server)
- Python
- Rust
- SystemVerilog
- TCL
- VHDL
- clangd configured with automatic
compile_commands.jsonvia a global CMake toolchain file - Corfu inline completion
- Flyspell spell checking (en_GB) for
.organd.mdfiles - Theme: ef-elea-dark
- Delete selection mode, truncated lines, no backup files
Windows
- If Emacs has been opened on the machine before, delete
%APPDATA%\.emacs.d\before runningchezmoi apply. Emacs creates this directory on first launch, which prevents chezmoi from creating the required junction to~\.emacs.d\. - The install script requires an elevated PowerShell window — chezmoi will prompt for this automatically.
macOS
- Hunspell dictionaries must be placed in
/Library/Spelling/. The install script handles this automatically.