diff options
Diffstat (limited to 'gnosis.el')
-rw-r--r-- | gnosis.el | 24 |
1 files changed, 3 insertions, 21 deletions
@@ -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.") |