summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2020-04-13 16:28:23 -0400
committerAmin Bandali <bandali@gnu.org>2020-04-13 16:28:23 -0400
commitfc9a59fbd64df571c8985d8996fb77a300eec016 (patch)
tree91eb723c7c4c03e1ab4a53abbb4ddc89fc8355bc
parentfac1032c8088b37252bef5e1e07e03bf1e955c0b (diff)
downloadconfigs-fc9a59fbd64df571c8985d8996fb77a300eec016.tar.gz
configs-fc9a59fbd64df571c8985d8996fb77a300eec016.tar.xz
configs-fc9a59fbd64df571c8985d8996fb77a300eec016.zip
Assimilate org-tanglesync af83a73
Useful for detecting external changes to tangled blocks upon edit.
-rw-r--r--.gitmodules3
m---------lib/org-tanglesync0
-rw-r--r--lisp/bandali-org.el3
3 files changed, 6 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index bee832b..4ffaf5f 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -56,6 +56,9 @@
load-path = lisp
load-path = contrib/lisp
info-path = doc
+[submodule "org-tanglesync"]
+ path = lib/org-tanglesync
+ url = https://github.com/mtekman/org-tanglesync.el.git
[submodule "packed"]
path = lib/packed
url = https://github.com/emacscollective/packed.git
diff --git a/lib/org-tanglesync b/lib/org-tanglesync
new file mode 160000
+Subproject af83a73ae542d5cb3c9d433cbf2ce1d4f425911
diff --git a/lisp/bandali-org.el b/lisp/bandali-org.el
index 9e45fa4..9938579 100644
--- a/lisp/bandali-org.el
+++ b/lisp/bandali-org.el
@@ -91,4 +91,7 @@
'safe-local-variable-values
'(eval add-hook 'after-save-hook #'b/async-babel-tangle 'append 'local))
+(use-package org-tanglesync
+ :hook (org-mode . org-tanglesync-mode))
+
(provide 'bandali-org)