From d2b2262db6cfb1baadf5a6410af3d536084de71d Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 3 Jan 2025 10:10:02 +0200 Subject: Remove image settings & directories. * Images won't be used in gnosis anymore. --- gnosis.el | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/gnosis.el b/gnosis.el index aa209e4..7c0a2ef 100644 --- a/gnosis.el +++ b/gnosis.el @@ -65,6 +65,9 @@ :type 'directory :group 'gnosis) +(unless (file-directory-p gnosis-dir) + (make-directory gnosis-dir)) + (defcustom gnosis-cloze-string "[...]" "Gnosis string to represent a cloze." :type 'string @@ -103,27 +106,6 @@ framework's minibuffer." :type 'function :group 'gnosis) -(defcustom gnosis-image-height nil - "Height of image to display during review. - -When nil, the image will be displayed at its original size." - :type 'integer - :group 'gnosis) - -(defcustom gnosis-image-width nil - "Width of image to display during review. - -When nil, the image will be displayed at its original size." - :type 'integer - :group 'gnosis) - -(defvar gnosis-images-dir (expand-file-name "images" gnosis-dir) - "Gnosis images directory.") - -(unless (file-directory-p gnosis-dir) - (make-directory gnosis-dir) - (make-directory gnosis-images-dir)) - (defvar gnosis-db (emacsql-sqlite-open (expand-file-name "gnosis.db" gnosis-dir)) "Gnosis database file.") -- cgit v1.2.3