Skip to content

schemes

D Groth edited this page Oct 10, 2024 · 6 revisions

Editor Schemes / Themes

MicroEmacs comes with around 30 predefined editor schemes. Often you would like to add your own editor scheme either by modifiying an existing scheme or by importing an already defined editor scheme from an other application into MicroEmacs. There are a few ways to accomplish this:

  • modify and existing scheme by using the scheme-editor interface from within ME, see the help page for scheme-editor
  • importing an editor scheme from other application - see the notes below
  • create a simple scheme macro with color definitions - see notes below

Importing Editor Schemes / Themes

The Github project mbadolato/iTerm2-Color-Schemes contains by far the largest collection of color themes for different applications as far as I know.

One of the formats in which themes are converted there is the xrdb format. The MicroEmacs Github project provides a xrdb-scheme macro in the contribs directory which allows directly to use the xrdb-files.

To install this macro download the file xrdb.emf to your ~/.config/jasspa folder and add the following line to your USERNAME.emf file.

define-macro-file xrdb xrdb-scheme

After you executed the buffer USERNAME.emf (Esc x execute-buffer) the xrdb-scheme command should be available. Thereafter you need to downlod files from the xrdb folder and place them in a folder ~/.config/jasspa/themes - please remove any spaces in the file names as they lead to trouble usually. After you then execute the xrdb-scheme command you can interactively select the themes which were placed within the folder.

Clone this wiki locally