From 942282cb508d281e858f0df82f48f1d5e5b9ff80 Mon Sep 17 00:00:00 2001 From: Cash Weaver Date: Fri, 16 Sep 2022 10:10:33 -0700 Subject: feat: Make hint prefix ("...") customizable 1. Add `org-fc-type-cloze-hint-prefix` --- org-fc-type-cloze.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'org-fc-type-cloze.el') diff --git a/org-fc-type-cloze.el b/org-fc-type-cloze.el index 78b76ee..9a1ef04 100644 --- a/org-fc-type-cloze.el +++ b/org-fc-type-cloze.el @@ -41,6 +41,11 @@ "Face for org-fc cloze card holes." :group 'org-fc) +(defcustom org-fc-type-cloze-hint-prefix + "..." + "Prefix for cloze hints." + :group 'org-fc) + (defvar org-fc-type-cloze-types '(deletion enumeration context single) "List of valid cloze card subtypes.") @@ -129,7 +134,9 @@ CURRENT-INDEX is the index of the current position in the list of all holes." (setq org-fc-type-cloze--hint (org-fc-overlay-surround (org-fc-make-overlay hint-beg hint-end) - "[..." "]" 'org-fc-type-cloze-hole-face)) + (concat "[" org-fc-type-cloze-hint-prefix) + "]" + 'org-fc-type-cloze-hole-face)) (org-fc-hide-region hint-end hole-end "") (org-fc-make-overlay hole-beg hole-end -- cgit v1.2.3