Skip to content

Commit

Permalink
Extend the installation and customization instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
bbatsov committed Feb 13, 2025
1 parent 82112c6 commit 5245b0e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ To load it automatically on Emacs startup add this to your init file:
(load-theme 'zenburn t)
```

If you prefer to use `use-package` just add the following:

``` emacs-lisp
(use-package zenburn-theme
:config
(load-theme 'zenburn t))
```

### Emacs Prelude

Zenburn for Emacs is already bundled into
Expand All @@ -75,6 +83,24 @@ Users of Debian 9 or later or Ubuntu 16.10 or later may simply

## Customization

### Custom faces

If want to change some faces you can do it
with `custom-theme-set-faces` or `use-package`. Here's an example:

``` emacs-lisp
(use-package zenburn-theme
:preface
(setq my/zenburn-colors-alist
'((fg . "#DCDCCC") (bg . "#1C1C1C") (cyan . "#93E0E3")))
:custom-face
(region ((t (:background ,(alist-get my/zenburn-colors-alist 'cyan)))))
:config
(load-theme 'zenburn t))
```

See [this article](https://emacsredux.com/blog/2025/02/13/customizing-color-themes/) for more details.

### Custom colors

If you'd like to tweak the theme by changing just a few colors, you can
Expand Down

0 comments on commit 5245b0e

Please sign in to comment.