diff --git a/core/autoload/memoize.el b/core/autoload/memoize.el index 7e9d61846..0713d2d55 100644 --- a/core/autoload/memoize.el +++ b/core/autoload/memoize.el @@ -1,6 +1,7 @@ ;;; memoize.el (provide 'doom-lib-memoize) +;;;###autoload (defvar doom-memoized-table (make-hash-table :test 'equal :size 10) "A lookup table containing memoized functions. The keys are argument lists, and the value is the function's return value.") @@ -14,6 +15,7 @@ and the value is the function's return value.") (or (gethash key doom-memoized-table) (puthash key (apply ',func args) doom-memoized-table)))))) +;;;###autoload (defmacro def-memoized! (name arglist &rest body) "Create a memoize'd function. NAME, ARGLIST, DOCSTRING and BODY have the same meaning as in `defun'."