From 904e9ba14ed6c4ce5839ad4b56c8fca069203565 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 27 Dec 2023 10:57:28 +0200 Subject: Add gnosis-display--hint --- gnosis.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnosis.el b/gnosis.el index f954d29..9a61325 100644 --- a/gnosis.el +++ b/gnosis.el @@ -125,6 +125,13 @@ else use `gnosis-face-false'" 'gnosis-face-correct 'gnosis-face-false)))))) +(defun gnosis-display--hint (hint) + "Display HINT." + (with-gnosis-buffer + (goto-char (point-max)) + (insert (concat "\n\nHint: " + (propertize hint 'face 'gnosis-face-hint))))) + (defun gnosis-display--cloze-correct (cloze-chars correct) "Replace CLOZE-CHARS with CORRECT." (with-gnosis-buffer -- cgit v1.2.3