diff options
author | Leon <gh@leonrische.me> | 2022-09-18 14:12:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-18 14:12:36 +0200 |
commit | 9bdc59cd0d1d979bf0f073224a947c53391f4c05 (patch) | |
tree | 66cdd4082450e253c7593edeba38fcc42fb380bc | |
parent | 54975344188ed0e3d0a4b701778165d424012668 (diff) | |
parent | 942282cb508d281e858f0df82f48f1d5e5b9ff80 (diff) |
Merge pull request #86 from cashweaver/feat/custom-cloze-elipsis
feat: Make hint prefix ("...") customizable
-rw-r--r-- | org-fc-type-cloze.el | 9 |
1 files changed, 8 insertions, 1 deletions
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 |