Home/Modules/linux-editors

linux-editors

library module lib/linux-editors

SLeeLa editor integrations โ€” syntax and color schemes

Syntax highlighting and color schemes for .sleela across six editors. The optional user-local installer deploys integrations without elevated permissions; it does not edit an editor's main configuration file.

Install and uninstall

From the SLeeLa repository root:

make install-editors

The installer detects installed editors and copies their integration files to user-local configuration directories. It never invokes sudo and does not modify editor startup/configuration files. Preview operations first:

make install-editors EDITOR_ARGS=--dry-run

Select editors explicitly with a comma-separated list:

make install-editors EDITORS=vim,neovim,emacs

Remove files managed by the installer with:

make uninstall-editors

The installer backs up files it replaces and restores them on uninstall. If a managed file has been edited since installation, uninstall preserves that local edit. State and backups are kept under $XDG_DATA_HOME/sleela/editor-installer (normally ~/.local/share/sleela/editor-installer).

Editor-specific notes: nano's .nanorc files are copied into ~/.config/nano/sleela; add include "~/.config/nano/sleela/*.nanorc" to your nano configuration. Emacs still needs the load-path entries and mode/theme selection shown in its README. VS Code is placed in the per-user extensions directory; restart VS Code after installation.

The nine themes

Every editor ships the same nine schemes, so a developer keeps one look across tools:

Source of truth

The Vim colors/*.vim files are the palette source of truth. generate-editor-themes.py reads their hex values and generates the Neovim, Helix, nano, and VS Code schemes from them (Emacs shares the same palette, kept in step by hand). Edit the palette in vim/colors/, then regenerate:

python3 lib/linux-editors/generate-editor-themes.py

Reference palette SVGs live under palettes/. The main SLeeLa runtime installer remains separate; editor integrations are an explicit, optional action.

Files 22