summaryrefslogtreecommitdiff
path: root/org-fc.el
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2021-03-07 15:59:52 +0100
committerLeon Rische <leon.rische@me.com>2021-03-07 15:59:52 +0100
commitad8c02f37106ba9ffc01ff580e8732614c284262 (patch)
tree57c409788d7ed2ce75c79a5a3be99757bca7557d /org-fc.el
parent196a5d97be5c1423cc6dc6317161ba94ea2d7d6e (diff)
Move variables / defcustom to org-fc-core
Diffstat (limited to 'org-fc.el')
-rw-r--r--org-fc.el102
1 files changed, 1 insertions, 101 deletions
diff --git a/org-fc.el b/org-fc.el
index 1a03975..04f6bd4 100644
--- a/org-fc.el
+++ b/org-fc.el
@@ -31,6 +31,7 @@
(require 'parse-time)
(require 'subr-x)
+(require 'org-fc-core)
(require 'org-fc-compat)
(require 'org-fc-awk)
@@ -45,107 +46,6 @@
(require 'org-fc-type-text-input)
(require 'org-fc-type-cloze)
-;;; Customization
-
-(defgroup org-fc nil
- "Manage and review flashcards with Emacs."
- :group 'external
- :group 'text)
-
-(defcustom org-fc-directories '("~/org/")
- "Directories to search for flashcards."
- :type 'string
- :group 'org-fc)
-
-(defvar org-fc-source-path
- (file-name-directory
- (file-truename (or load-file-name (buffer-file-name))))
- "Location of the org-fc sources.
-Used to generate absolute paths to the awk scripts.")
-
-(defcustom org-fc-review-history-file (expand-file-name "org-fc-reviews.tsv" user-emacs-directory)
- "File to store review results in."
- :type 'string
- :group 'org-fc)
-
-(defcustom org-fc-shuffle-positions t
- "Shuffle positions before review."
- :type 'boolean
- :group 'org-fc)
-
-(defcustom org-fc-append-failed-cards t
- "Add failed cards to the end of the review session."
- :type 'boolean
- :group 'org-fc)
-
-(defcustom org-fc-index-function #'org-fc-awk-index
- "Function used to index cards in a list of paths."
- :type 'function
- :group 'org-fc)
-
-;;;; Org Tags / Properties
-
-(defcustom org-fc-type-property "FC_TYPE"
- "Property used to store the cards type."
- :type 'string
- :group 'org-fc)
-
-(defcustom org-fc-created-property "FC_CREATED"
- "Property used to store the cards creation time."
- :type 'string
- :group 'org-fc)
-
-(defcustom org-fc-type-cloze-max-hole-property "FC_CLOZE_MAX"
- "Name of the property to use for storing the max hole index."
- :type 'string
- :group 'org-fc)
-
-(defcustom org-fc-suspended-tag "suspended"
- "Tag for marking suspended cards."
- :type 'string
- :group 'org-fc)
-
-(defcustom org-fc-flashcard-tag "fc"
- "Tag for marking headlines as flashcards."
- :type 'string
- :group 'org-fc)
-
-(defcustom org-fc-demo-tag "fc-demo"
- "Tag for marking headlines as demo flashcards.
-When demo flashcards are reviewed, their review data is not
-updated. This is used for the `org-fc-demo' and for testing card
-types."
- :type 'string
- :group 'org-fc)
-
-(defcustom org-fc-review-data-drawer "REVIEW_DATA"
- "Name of the drawer used to store review data."
- :type 'string
- :group 'org-fc)
-
-(defcustom org-fc-drawer-whitelist '()
- "Drawers that are not hidden during review."
- :type 'list
- :group 'org-fc)
-
-(defcustom org-fc-stats-review-min-box 0
- "Minimum box for reviews to include in the review stats."
- :type 'integer
- :group 'org-fc)
-
-;;;; Spacing Parameters
-
-(defcustom org-fc-algorithm 'sm2-v1
- "Algorithm for spacing reviews of cards."
- :type '(choice (const sm2-v1) (const sm2-v2))
- :group 'org-fc)
-
-(defcustom org-fc-bury-siblings nil
- "If non-nil, show at most one position of a card per review.
-Does not apply to cloze single and cloze enumeration cards."
- :type 'boolean
- :group 'org-fc)
-
;;; Footer
(provide 'org-fc)