From 4e4d0882988c7533a9a652759810064b8202d038 Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 22 Jan 2014 22:36:31 -0800 Subject: [PATCH] save things before calling update mobile org --- update_mobile_org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'; -- 2.39.2