My Emacs always prompts me if it should trust selected colour theme or not. I always answer y
and y
to trust and remember my choice. I'm loading colour theme manually:
(load-theme 'my-favourite-theme)
I suppose this is because easy customizations are placed below colour theme loading. Is it some way to fix it? Or should I just delegate colour theme loading to easy customizations too?
load-theme
has optional arguments:(load-theme THEME &optional NO-CONFIRM NO-ENABLE)
-- If used directly in your init file, it should be called with a non-nil NO-CONFIRM argument . . . In other words, use:(load-theme 'my-favourite-theme t)
(load-theme 'name t nil)
or just(load-theme 'name t)
?nil
need to be included ONLY if a subsequent optional argument is non-nil
. For example, if you wanted the first optional argument to benil
and the second optional argument to bet
, thennil
would be needed for the first argument. Since the second optional argument isnil
-- you may omit or include it -- it makes no difference. Sometimes I usenil
for optional arguments when there is no subsequent non-nil
optional argument just so that I know how many optional arguments are possible for a particular function -- i.e., a visual reminder.t
, emacs will ask you that question again each time after that theme package is updated (because its .el checksum changes). Is that the case? If you keep on getting those prompts each time you start emacs (even when the theme .el hasn't been updated), then make sure that the theme checksum is been saved by emacs and also being read by emacs during start-up. One possible scenario is that you have saved the custom.el as a separate file (emacs is memorizing the safe themes to those) but you are not loading that file in init.