Skip to content

Commit

Permalink
Add org-fc-help command
Browse files Browse the repository at this point in the history
  • Loading branch information
l3kn committed Mar 11, 2024
1 parent ed4c55f commit ff9ae9f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/index.org
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

[[file:images/review.png]]

You can view this documentation in Emacs with ~M-x org-fc-help~.

* Introduction
Org-fc is a spaced-repetition system for Emacs' org-mode.

Expand Down
7 changes: 7 additions & 0 deletions org-fc-core.el
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,13 @@ Cards with no positions are removed from the index."
(push card res)))))
(reverse res)))

;;;###autoload
(defun org-fc-help ()
"Open the org-fc documentation."
(interactive)
(let ((path (expand-file-name "docs/index.org" org-fc-source-path)))
(find-file path)))

;;; Demo Mode

;;;###autoload
Expand Down

0 comments on commit ff9ae9f

Please sign in to comment.