load-theme is not the function that actually changes the theme.
It even has an argument NO-ENABLE.
enable-theme changes the theme and is run at the end of load-theme if NO-ENABLE is nil.
defadvising load-theme has no effect at all if the theme was already loaded.
load-theme
is not the function that actually changes the theme. It even has an argumentNO-ENABLE
.enable-theme
changes the theme and is run at the end ofload-theme
ifNO-ENABLE
isnil
. defadvisingload-theme
has no effect at all if the theme was already loaded.