From: Don Armstrong Date: Thu, 23 Jan 2014 06:36:31 +0000 (-0800) Subject: save things before calling update mobile org X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4e4d0882988c7533a9a652759810064b8202d038;p=bin.git save things before calling update mobile org --- 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';