Function: persist-load

persist-load is a byte-compiled function defined in persist.el.

Signature

(persist-load SYMBOL)

Documentation

Load the saved value of SYMBOL.

Source Code

;; Defined in ~/.emacs.d/elpa/persist-0.8/persist.el
(defun persist-load (symbol)
  "Load the saved value of SYMBOL."
  (when (file-exists-p (persist--file-location symbol))
    (with-temp-buffer
      (insert-file-contents (persist--file-location symbol))
      (let ((val (read (current-buffer))))
        (when (run-hook-with-args-until-failure 'persist-load-hook
                                                symbol val)
          (set symbol val))))))