[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/modus-vivendi-theme 25de45e 23/35: Tweak README advance
From: |
Stefan Monnier |
Subject: |
[elpa] externals/modus-vivendi-theme 25de45e 23/35: Tweak README advanced customisation example |
Date: |
Wed, 24 Jun 2020 12:42:49 -0400 (EDT) |
branch: externals/modus-vivendi-theme
commit 25de45e7e997f324267fbba6949b803f73c96c6e
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Tweak README advanced customisation example
---
README.org | 36 +++++++++++++++++++++++++-----------
1 file changed, 25 insertions(+), 11 deletions(-)
diff --git a/README.org b/README.org
index 95907dd..ed883b1 100644
--- a/README.org
+++ b/README.org
@@ -526,24 +526,38 @@ Len's sample package declaration (with comments by me):
#+begin_src emacs-lisp
(use-package modus-vivendi-theme
- :init ; enable some of the customisation
options before loading the theme
+ :init
+ ;; enable some of the customisation options before loading the theme
(setq modus-vivendi-theme-visible-fringe t
modus-vivendi-theme-3d-modeline t)
:config
- (defun customize-modus-vivendi () ; function that passes further
customisations to the theme
+ (defun customize-modus-vivendi ()
"Customize modus-vivendi theme"
(if (member 'modus-vivendi custom-enabled-themes)
- (modus-vivendi-theme-with-color-variables ; this macro allows us to
access the colour palette
+ ;; this macro allows us to access the colour palette
+ (modus-vivendi-theme-with-color-variables
(custom-theme-set-faces
'modus-vivendi
- `(magit-branch-current ((((supports :box t)) (:foreground
,blue-alt-other :background ,bg-alt :box t)) ; use a box property if possible
and also apply a background
- (t (:foreground ,blue-alt-other :background
,bg-alt :underline t)))) ; use an underline if the box is not available
- `(magit-branch-remote-head ((((supports :box t)) (:foreground
,magenta-alt-other :background ,bg-alt :box t))
- (t (:foreground ,magenta-alt-other
:background ,bg-alt :underline t))))
-
+ `(magit-branch-current
+ ((;; use a box property if the current display terminal
+ ;; supports it and also apply a background
+ ((supports :box t))
+ (:foreground ,blue-alt-other :background ,bg-alt :box t))
+ (t
+ ;; use an underline if instead of a box for other
+ ;; terminals
+ (:foreground ,blue-alt-other :background ,bg-alt :underline t))))
+ `(magit-branch-remote-head
+ ((((supports :box t))
+ (:foreground ,magenta-alt-other :background ,bg-alt :box t))
+ (t
+ (:foreground ,magenta-alt-other :background ,bg-alt :underline
t))))
))))
- (add-hook 'after-load-theme-hook 'customize-modus-vivendi) ; invoke the
above function when appropriate in order to override the styles of the desired
faces
- (load-theme 'modus-vivendi t)) ; load the theme
+ ;; invoke the above function when appropriate in order to override the
+ ;; styles of the desired faces
+ (add-hook 'after-load-theme-hook 'customize-modus-vivendi)
+ ;; load the theme
+ (load-theme 'modus-vivendi t))
#+end_src
Perhaps you want something simpler, such as a nice style for the cursor:
@@ -557,7 +571,7 @@ Perhaps you want something simpler, such as a nice style
for the cursor:
(modus-vivendi-theme-with-color-variables
(custom-theme-set-faces
'modus-vivendi
- `(cursor ((t (:background ,red-alt))))))
+ `(cursor ((t (:background ,green-alt))))))
#+end_src
The code for the bespoke =after-load-theme-hook= could be something like
- [elpa] externals/modus-vivendi-theme b19d100 18/35: Extend support for INFO titles, (continued)
- [elpa] externals/modus-vivendi-theme b19d100 18/35: Extend support for INFO titles, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme 0d9c90c 19/35: Major review of DIREDFL faces, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme 9b8c0c8 20/35: Make diff indicators better for subtle diff option, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme 2c55c0f 21/35: Differentiate 'message-mml', 'message-header-name', Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme f1a22b5 22/35: Make 'message-separator' more intense greyscale, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme 695f459 24/35: Expand README with demo for custom colour values, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme 38471df 25/35: Minor amendment to commit f1a22b5e3, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme c28d472 29/35: Don't give deffaces an invalid docstring, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme c0d35ae 32/35: Use appropriate colour for symlinks, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme f264a89 35/35: Merge branch 'master' into local branch, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme 25de45e 23/35: Tweak README advanced customisation example,
Stefan Monnier <=
- [elpa] externals/modus-vivendi-theme 8317484 27/35: Fix Ibuffer dependency on Dired faces, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme 4068405 33/35: Define palette as a constant, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme deda7db 26/35: Fix parentheses and indentation, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme bfa6650 28/35: Review internal "mark" faces, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme 776977c 30/35: Use modern (DISPLAY . PLIST) face spec entries, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme 9d5f815 31/35: Remove unwanted underline in doom-modeline-urgent, Stefan Monnier, 2020/06/24
- [elpa] externals/modus-vivendi-theme aa3897c 34/35: Upgrade to version 0.10.0, Stefan Monnier, 2020/06/24