From fc9a59fbd64df571c8985d8996fb77a300eec016 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Mon, 13 Apr 2020 16:28:23 -0400 Subject: Assimilate org-tanglesync af83a73 Useful for detecting external changes to tangled blocks upon edit. --- .gitmodules | 3 +++ lib/org-tanglesync | 1 + lisp/bandali-org.el | 3 +++ 3 files changed, 7 insertions(+) create mode 160000 lib/org-tanglesync 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 index 0000000..af83a73 --- /dev/null +++ b/lib/org-tanglesync @@ -0,0 +1 @@ +Subproject commit af83a73ae542d5cb3c9d433cbf2ce1d4f4259117 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) -- cgit v1.2.3-60-g2f50