From 10a805de08b00e1767e327644e5fd468b00c8ae2 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 14 Jul 2024 04:40:56 +0300 Subject: cloze: Update default cloze string and face. - Use a more familiar cloze string to other srs. - Use ffap & italic as face, cursor can be problematic when using hints. --- gnosis.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnosis.el b/gnosis.el index 95364a9..a8d7743 100644 --- a/gnosis.el +++ b/gnosis.el @@ -38,6 +38,7 @@ ;;; Code: (require 'cl-lib) +(require 'subr-x) (require 'vc) (require 'emacsql-sqlite) @@ -57,7 +58,7 @@ :type 'directory :group 'gnosis) -(defcustom gnosis-cloze-string "__" +(defcustom gnosis-cloze-string "[...]" "Gnosis string to represent a cloze." :type 'string :group 'gnosis) @@ -230,7 +231,7 @@ Seperate the question/stem from options." :group 'gnosis-face) (defface gnosis-face-cloze - '((t :inherit cursor)) + '((t :inherit (ffap italic))) "Face for clozes." :group 'gnosis-face) -- cgit v1.2.3