emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/cyberpunk-theme 6d486cb 131/132: Theme adjustment example


From: ELPA Syncer
Subject: [nongnu] elpa/cyberpunk-theme 6d486cb 131/132: Theme adjustment example
Date: Thu, 21 Oct 2021 18:04:05 -0400 (EDT)

branch: elpa/cyberpunk-theme
commit 6d486cb9867ec0c6dc89d145b3805632b6ca339a
Author: nemo <nemo1211@gmail.com>
Commit: nemo <nemo1211@gmail.com>

    Theme adjustment example
---
 README.md | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/README.md b/README.md
index 4ced7ee..e7bbfd2 100644
--- a/README.md
+++ b/README.md
@@ -97,6 +97,26 @@ In addition to basic face settings, cyberpunk-theme has 
specially-tailored suppo
 * wanderlust\*
 * whitespace-mode\*
  
+User Customizations
+===================
+
+Like the theme but wish a few details could be adjusted to your own individual 
needs? No problem--you can adjust individual theme face attributes anywhere in 
your ~/.emacs.d configurations files. One way to accomplish this would be to 
create a hook that runs after load-theme is ran. Then, you can add hooks to 
change individual faces in the theme. For example, if rather than the default 
you wanted isearch matches to be underlined in yellow, you could place the 
following anywhere in your e [...]
+
+```lisp
+(defvar after-load-theme-hook nil
+  "Hook run after a color theme is loaded using `load-theme'.")
+(defadvice load-theme (after run-after-load-theme-hook activate)
+  "Run `after-load-theme-hook'."
+  (run-hooks 'after-load-theme-hook))
+
+(add-hook 'after-load-theme-hook
+         (lambda ()
+           (set-face-attribute 'lazy-highlight nil
+                               :underline '(:color "yellow")
+                               :foreground 'unspecified
+                               :background 'unspecified)))
+```
+
 Acknowledgments 
 ===============
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]