Skip to content

Commit

Permalink
added information about customizing fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed May 31, 2021
1 parent 40ca5ee commit ef5d97e
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,42 @@ and then call for the different modules. The only mandatory module is
To install nano through [straight.el](https://github.com/raxod502/straight.el),
install straight.el, and then add the following snippet into your emacs
configuration:
```
``` emacs-lisp
(straight-use-package
'(nano-emacs :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.

```emacs-lisp
(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.

```emacs-lisp
(setq nano-font-family-proportional nil)
```

Set this to the name 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.

```emacs-lisp
(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

- **[nano.el](./nano.el)** (optional)
Expand Down

0 comments on commit ef5d97e

Please sign in to comment.