From 9ad5793b12a1195878113337c117461c929dcfb2 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 6 Aug 2024 23:53:14 +0300 Subject: New function: get-custom-deck-value * Return custom deck value for deck, avoiding code repetition. --- gnosis.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnosis.el b/gnosis.el index 6c69b98..c7d02a5 100644 --- a/gnosis.el +++ b/gnosis.el @@ -1991,6 +1991,10 @@ VALUES: Defaults to `gnosis-custom-values'." (setq results (append results (nth 2 rule))))) results)) +(defun gnosis-get-custom-deck-value (deck value &optional values) + "Return custom VALUE for note DECK." + (plist-get (gnosis-get-custom-values :deck deck values) value)) + (defun gnosis-get-date-total-notes (&optional date) "Return total notes reviewed for DATE. -- cgit v1.2.3