8 ms·
I had a similar setup, but ended up coding a toggle for it, as it can get rather long as your source grows. In case you find it useful: ;; Tangle Org f
by tincholio 8y ago
I had a similar setup, but ended up coding a toggle for it, as it can get rather long as your source grows. In case you find it useful:
;; Tangle Org files when we save them
(defun toggle-org-tangle-on-save()
(interactive)
(if (bound-and-true-p org-tangle-on-save)
(setq-local org-tangle-on-save nil)
(setq-local org-tangle-on-save t))
(message (if org-tangle-on-save "Enabled tangling on save" "Disabled tangling on save")))