emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sven Bretfeld <sven.bretfeld@gmx.ch>
To: Allen Li <darkfeline@felesatra.moe>
Cc: emacs-orgmode@gnu.org
Subject: Re: Asynchronous mobileorg push/pull
Date: Mon, 23 Nov 2015 15:33:23 +0100	[thread overview]
Message-ID: <87vb8sss3w.fsf@ntnu.no> (raw)
In-Reply-To: <87a8q9lxzj.fsf@felesatra.moe>

Allen Li writes:

> Hello,
>
> I've started using MobileOrg to do capturing and simple Org tasks on my
> phone.  Although it seems to work well enough so far, running
> org-mobile-push and org-mobile-pull synchronously locks up Emacs for an
> unacceptably long period of time.
>
> Does anyone have any asynchronous solutions for MobileOrg syncing?

You can just use a cronjob like:

*/10  *  *  *  *  emacs --batch --load ~/.emacs --eval "(org-mobile-pull)" --eval "(org-mobile-push)"

This executes the whole process in the background with another instance of
emacs running in batch-mode.

Sven

-- 
Sven Bretfeld
Department of Philosophy and Religious Studies
NTNU Trondheim

  reply	other threads:[~2015-11-23 14:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-19 17:06 Asynchronous mobileorg push/pull Allen Li
2015-11-23 14:33 ` Sven Bretfeld [this message]
2015-11-29 17:12   ` Bingo UV

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vb8sss3w.fsf@ntnu.no \
    --to=sven.bretfeld@gmx.ch \
    --cc=darkfeline@felesatra.moe \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).