 ;; Bootstrap
 
 (add-hook! 'org-load-hook
-  #'(org-crypt-use-before-save-magic
-     +org|setup-ui
+  #'(+org|setup-ui
      +org|setup-popup-rules
      +org|setup-agenda
      +org|setup-keybinds

(def-package! org-clock
  :commands org-clock-save
  :hook (org-mode . org-clock-load)
  :init
  (setq org-clock-persist 'history
        org-clock-persist-file (concat doom-etc-dir "org-clock-save.el"))

;; Built-in libraries

(def-package! org-crypt ; built-in
  :commands org-encrypt-entries
  :hook (org-reveal-start . org-decrypt-entry)
  :init
  (add-hook! 'org-mode-hook
    (add-hook 'before-save-hook 'org-encrypt-entries nil t))
  :config
  (setq org-tags-exclude-from-inheritance '("crypt")
        org-crypt-key user-mail-address))
