branch: elpa/zenburn-theme commit 5245b0e3297b69c2c1e3478b9038478168a59dfd Author: Bozhidar Batsov <bozhi...@batsov.dev> Commit: Bozhidar Batsov <bozhi...@batsov.dev>
Extend the installation and customization instructions --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 6e344163e4..988d7ecb91 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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