summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfpi2020-02-14 17:09:09 +0100
committerfpi2020-02-23 18:07:14 +0100
commited3bdb12c390fb1ef97a532f4bab88c7ff31a06d (patch)
tree2885265098b26ab10962cd59dbc955c04444af0b
parentPrefer PATH settings in ~/.profile in Tramp (diff)
Update pdf-view-midnight-colors after theme change
Diffstat (limited to '')
-rw-r--r--emacs-init.org6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs-init.org b/emacs-init.org
index 5afb11f..df14609 100644
--- a/emacs-init.org
+++ b/emacs-init.org
@@ -807,6 +807,12 @@ The above macro can be used like this.
(:background nil
:inherit nil))))
#+end_src
+Advice =load-theme= to also update the colors for
+=pdf-view-midnight-mode=.
+#+begin_src emacs-lisp
+(defadvice load-theme (after update-pdf-view-midnight-color activate)
+ (setq pdf-view-midnight-colors `(,(face-attribute 'default :foreground) . ,(face-attribute 'default :background))))
+#+end_src
Finally load the theme.
#+begin_src emacs-lisp