Function: custom--should-apply-setting

custom--should-apply-setting is a byte-compiled function defined in custom.el.gz.

Signature

(custom--should-apply-setting THEME)

Documentation

Non-nil if settings for the theme THEME should apply immediately.

Theme settings apply immediately if:
- THEME is already enabled.
- THEME is being enabled via enable-theme or an interactive call to
  load-theme.
- THEME is the user theme.

Source Code

;; Defined in /usr/src/emacs/lisp/custom.el.gz
(defun custom--should-apply-setting (theme)
  "Non-nil if settings for the theme THEME should apply immediately.

Theme settings apply immediately if:
- THEME is already enabled.
- THEME is being enabled via `enable-theme' or an interactive call to
  `load-theme'.
- THEME is the `user' theme."
  (or (memq theme custom-enabled-themes)
      (null custom--inhibit-theme-enable)
      (and (eq custom--inhibit-theme-enable 'apply-only-user)
           (eq theme 'user))))