diff --git a/elfeed-export.el b/elfeed-export.el index cd31884..1f1aa79 100644 --- a/elfeed-export.el +++ b/elfeed-export.el @@ -124,19 +124,23 @@ return t when the entry should be exported." (mapcar #'elfeed-export--entry-to-alist (elfeed-export-filter-entries entries)))) +;;;###autoload (defun elfeed-export-to-json () "Return the JSON string for all entries that should be exported." (json-encode (elfeed-export--entries))) +;;;###autoload (defun elfeed-export-to-lisp () "Return the Lisp data string for all entries that should be exported." (prin1-to-string (elfeed-export--entries))) +;;;###autoload (defun elfeed-export-to-json-file (path) "Write the JSON string to a file at PATH." (interactive "F") (write-region (elfeed-export-to-json) nil path nil nil nil t)) +;;;###autoload (defun elfeed-export-to-lisp-file (path) "Write the JSON string to a file at PATH." (interactive "F")