]> git.donarmstrong.com Git - bin.git/commitdiff
allow for emacs to not save org buffers
authorDon Armstrong <don@donarmstrong.com>
Fri, 16 Feb 2018 00:24:50 +0000 (16:24 -0800)
committerDon Armstrong <don@donarmstrong.com>
Fri, 16 Feb 2018 00:24:50 +0000 (16:24 -0800)
update_org_files

index 668f7e95078ab71d8d366f51de2c04fdf66933b2..a17171be69b6f4e0e6ce10728b600d88f385cb86 100755 (executable)
@@ -13,7 +13,9 @@ if [ "x$UPDATE_ORG_REALLY_DO_IT" == "xyesdoit" ]; then
     fi;
     git pull;
 else
-    emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1
+    if [ "x$NO_SAVE_ORG_BUFFERS" == "x" ]; then
+        emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1
+    fi;
     UPDATE_ORG_REALLY_DO_IT="yesdoit" mr -d ~/projects/org-notes -j5 run \
                            update_org_files "$COMMIT_MESSAGE"
     UPDATE_ORG_REALLY_DO_IT="yesdoit" mr -d ~/org-mode -j5 run \