X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=update_mobile_org;fp=update_mobile_org;h=4078d68e2e2f7eb108d3f159914a2ff649006f10;hb=4e4d0882988c7533a9a652759810064b8202d038;hp=2de7dc2547fa50efa1315be5a61829dcb8f35569;hpb=8f840c79a9a2db8269a1130912a67d807de45f11;p=bin.git diff --git a/update_mobile_org b/update_mobile_org index 2de7dc2..4078d68 100755 --- a/update_mobile_org +++ b/update_mobile_org @@ -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';