Commit f370647472a8

Vincent Demeester <vincent@sbr.pm>
2023-11-27 12:04:48
tools/emacs: update all dynamic blocks on save
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent bfbe28d
Changed files (1)
tools
emacs
tools/emacs/config/config-org.el
@@ -56,6 +56,8 @@
     (auto-revert-mode)
     (auto-fill-mode)
     (org-indent-mode)
+    (add-hook 'before-save-hook 'org-update-all-dblocks)
+    (add-hook 'auto-save-hook 'org-update-all-dblocks)
     (add-hook 'before-save-hook #'save-and-update-includes nil 'make-it-local)))
 
 (use-package org