refactor(org): move org-crypt and related hooks behind a '+crypt' flag

This commit is contained in:
VitalyR 2023-06-07 15:57:41 +08:00 committed by Henrik Lissner
parent 1d662a54a8
commit 547584b831
2 changed files with 3 additions and 1 deletions

View file

@ -48,6 +48,8 @@ https://www.mfoot.com/blog/2015/11/22/literate-emacs-configuration-with-org-mode
- +dragndrop :: - +dragndrop ::
Enable drag-and-drop support for images and files; inserts inline previews Enable drag-and-drop support for images and files; inserts inline previews
for images and an icon+link for other media types. for images and an icon+link for other media types.
- +crypt ::
Enable [[https://orgmode.org/manual/Org-Crypt.html][org-crypt]] integraiton for encryption and decryption on org files.
- +gnuplot :: - +gnuplot ::
Install gnuplot & gnuplot-mode, which enables rendering images from gnuplot Install gnuplot & gnuplot-mode, which enables rendering images from gnuplot
src blocks or plotting tables with fn:org-plot/gnuplot (bound to =SPC m b p=, src blocks or plotting tables with fn:org-plot/gnuplot (bound to =SPC m b p=,

View file

@ -1143,8 +1143,8 @@ between the two."
(set-marker p nil))))) (set-marker p nil)))))
;; TODO Move to +encrypt flag
(use-package! org-crypt ; built-in (use-package! org-crypt ; built-in
:when (modulep! +crypt)
:commands org-encrypt-entries org-encrypt-entry org-decrypt-entries org-decrypt-entry :commands org-encrypt-entries org-encrypt-entry org-decrypt-entries org-decrypt-entry
:hook (org-reveal-start . org-decrypt-entry) :hook (org-reveal-start . org-decrypt-entry)
:preface :preface