summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2025-01-03 10:10:02 +0200
committerThanos Apollo <[email protected]>2025-01-03 10:10:02 +0200
commitd2b2262db6cfb1baadf5a6410af3d536084de71d (patch)
tree4576979076ea0a994e39890baaf5482c5bb4e8e3
parenteefd0abb3cb7ca8a09c249686ff67555724624da (diff)
Remove image settings & directories.
* Images won't be used in gnosis anymore.
-rw-r--r--gnosis.el24
1 files 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.")