]> git.donarmstrong.com Git - bin.git/commitdiff
save things before calling update mobile org
authorDon Armstrong <don@donarmstrong.com>
Thu, 23 Jan 2014 06:36:31 +0000 (22:36 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 23 Jan 2014 06:36:31 +0000 (22:36 -0800)
update_mobile_org

index 2de7dc2547fa50efa1315be5a61829dcb8f35569..4078d68e2e2f7eb108d3f159914a2ff649006f10 100755 (executable)
@@ -8,5 +8,7 @@ if [ -n "$PS1" ]; then
     LOCKOPTS=-f;
 fi;
 mr -d ~/org-mode up;
-with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org emacs --batch -l ~/.emacs -f 'org-mobile-push' -f 'org-mobile-pull'
+with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1
+with-lock-ex $LOCKOPTS $TMPDIR/update_mobile_org emacs --batch -l ~/.emacs \
+    --eval '(org-mobile-push)' --eval '(org-mobile-pull)' --eval '(org-save-all-org-buffers)';
 mr -d ~/org-mode commit -m'org mobile automated commit and push';