       (if begin
 	  (string-trim (substring contents begin (match-end 0)) "#\\+[tT][iI][tT][lL][eE]: *" "[\n\t ]+")
 	(deft-base-filename file))))
-  
   (advice-add 'deft-parse-title :override #'cm/deft-parse-title)
 
   (setq deft-directory org-directory
         deft-default-extension "org"
-        deft-recursive t)
+        deft-recursive t
+        deft-auto-save-interval 0)      ; disable auto-saving
+
   ;; ensure :PROPERTIES: and lowercase #+props are not shown in note summaries
   (setq deft-strip-summary-regexp "\\(^:.*:.*\\|[\n	]\\|^#\\+[[:alpha:]_]+:.*$\\)"))
 


;; flashcards
(use-package org-drill
  :straight t)

;;;;; Programming Modes


;; enhanced pdf viewing
(use-package pdf-tools
  :straight t
  :defer t
  :config
  (pdf-tools-install)
  (setq-default pdf-view-display-size 'fit-width)
