diff options
author | Case Duckworth | 2022-04-24 17:00:36 -0500 |
---|---|---|
committer | Case Duckworth | 2022-04-24 17:00:36 -0500 |
commit | 3f925fc0e3ae352fb15ad93e6c169a0307aaffc7 (patch) | |
tree | ef5820ef2933bf7742edae6cd09f45f6a5e697f9 /init.el | |
parent | Correction: uh, not a typo but whatever (diff) | |
download | emacs-3f925fc0e3ae352fb15ad93e6c169a0307aaffc7.tar.gz emacs-3f925fc0e3ae352fb15ad93e6c169a0307aaffc7.zip |
Add +org-export-pre-hook to prepare the buffer before export
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/init.el b/init.el index 6e80b41..ca0c507 100644 --- a/init.el +++ b/init.el | |||
@@ -796,7 +796,8 @@ | |||
796 | org-attach-id-uuid-folder-format))) | 796 | org-attach-id-uuid-folder-format))) |
797 | 797 | ||
798 | (setup ox ; org-export | 798 | (setup ox ; org-export |
799 | (:also-load ox-md) | 799 | (:also-load +ox |
800 | ox-md) | ||
800 | (:option org-export-coding-system 'utf-8-unix | 801 | (:option org-export-coding-system 'utf-8-unix |
801 | org-export-headline-levels 8 | 802 | org-export-headline-levels 8 |
802 | org-export-with-drawers nil | 803 | org-export-with-drawers nil |
@@ -804,8 +805,11 @@ | |||
804 | org-export-with-smart-quotes t | 805 | org-export-with-smart-quotes t |
805 | org-export-with-sub-superscripts t | 806 | org-export-with-sub-superscripts t |
806 | org-export-with-toc nil) | 807 | org-export-with-toc nil) |
808 | (with-eval-after-load 'ox | ||
809 | (+org-export-pre-hooks-insinuate)) | ||
810 | (add-hook '+org-export-pre-hook #'+flyspell-correct-buffer) | ||
807 | (with-eval-after-load 'user-save | 811 | (with-eval-after-load 'user-save |
808 | (advice-add 'org-export-as :before #'user-save-run-hooks))) | 812 | (add-hook '+org-export-pre-hook #'user-save-run-hooks))) |
809 | 813 | ||
810 | (setup password-cache | 814 | (setup password-cache |
811 | (:option password-cache t | 815 | (:option password-cache t |