Home

Awesome

GNU Emacs / N Λ N O

GNU Emacs / N Λ N O is a set of configuration files for GNU Emacs such as to provide a nice and consistent look and feel as shown below. It is based on design principles I described in the article "On the design of text Editors" that is available on arXiv. The light theme is based on Material colors and the dark theme is based on Nord colors.

The philosophy of nano emacs is to stick as much as possible to vanilla emacs without introducing too much dependencies (or none if possible) and to keep it modular enough. The idea is for users to copy the part they are interested in such as to include them in their own configuration.

<div> <img src="./images/nano-emacs-light.png" width=47.5%> <img src="./images/nano-emacs-dark.png" width=47.5%> </div>

Nano Emacs is quite close to my other project Elegant Emacs which might be considered to be an early prototype.

Requirements

You need a recent version of GNU Emacs and to have the Roboto Mono and Fira Code fonts installed on your system. There are no other dependencies.

Quick test

The easiest way to test nano emacs is to clone the directory on your desktop and to type (from inside the cloned repository):

$ emacs -q -l nano.el

Installation

If you like the result, you can either manually merge the contents of nano.el into your emacs configuration file, or install nano through the straight.el package manager.

Manual Installation

To merge the nano.el contents with your emacs configuration, you'll need to modify the load-path to include the nano emacs repository and then call for the different modules. The only mandatory module is nano-faces that defines 6 faces that are used in other modules.

Installation through straight.el

To install nano through straight.el, install straight.el, and then add the following snippet into your emacs configuration:

(straight-use-package
  '(nano :type git :host github :repo "rougier/nano-emacs"))

from here, you may either (require 'nano) to pull in the default nano configuration, or call for the different modules. The only mandatory module is nano-faces that defines 6 faces that are used in other modules.

Customization

You can customize the default font, the proportional font and the font-size.

(setq nano-font-family-monospaced "Roboto Mono")

This sets the default monospaced font. Defaults to Roboto Mono. Note that if you set this to a font without proper light or bold weights you will lose many of the key design features of nano-emacs.

(setq nano-font-family-proportional nil)

Set this to the name (as a string) of your favorite variable-width font to enable variable-width-mode and mixed-pitch-mode. If you have already set this somewhere else, you can use (setq nano-font-family-proportional (face-attribute 'variable-width :family)) to use the same one.

(setq nano-font-size 14)

This sets the font-size of most faces in nano-emacs.

Note about load-order

Because of the way nano-emacs is set up, you need to set these variables before you call (nano-faces) and (nano-theme). If you change one of these variables after load/calling (nano-faces) and (nano-theme), you will need to call them again for these changes to take effect.

Modules

Mandatory

Optional

Experimental

Related works