From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gijs Hillenius Subject: Re: Syncing methods for org files and org-mobile.el Date: Fri, 13 Jan 2017 12:00:22 +0100 Message-ID: <87o9zb2pix.fsf@hillenius.net> References: <87ziivdzy5.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRzbD-0006yF-CZ for emacs-orgmode@gnu.org; Fri, 13 Jan 2017 06:00:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRzb9-0000uP-56 for emacs-orgmode@gnu.org; Fri, 13 Jan 2017 06:00:47 -0500 Received: from hillenius.net ([144.76.204.189]:45775) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRzb8-0000qo-Hn for emacs-orgmode@gnu.org; Fri, 13 Jan 2017 06:00:43 -0500 Received: from [2a01:4f8:200:546b:0:9e15:9e15:1000] (helo=bufocogita) by hillenius.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cRzav-0000EM-T3 for emacs-orgmode@gnu.org; Fri, 13 Jan 2017 12:00:31 +0100 In-Reply-To: <87ziivdzy5.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Fri, 13 Jan 2017 10:19:46 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Eric S Fraga writes: > On Friday, 13 Jan 2017 at 08:50, Anssi Saari wrote: >> When I tried MobileOrg I think I used Dropbox. But since initiating >> manual sync from Emacs seemed mandatory I just didn't get much use out >> of MobileOrg. > > But automatic sync in Emacs should be quite straightforward and is > independent of the mobile end. You can use a timer, for instance: > > ,----[ C-h f run-with-idle-timer RET ] > | run-with-idle-timer is an interactive compiled Lisp function in > | =E2=80=98timer.el=E2=80=99. > |=20 > | (run-with-idle-timer SECS REPEAT FUNCTION &rest ARGS) > |=20 > | Perform an action the next time Emacs is idle for SECS seconds. > | The action is to call FUNCTION with arguments ARGS. > | SECS may be an integer, a floating point number, or the internal > | time format returned by, e.g., =E2=80=98current-idle-time=E2=80=99. > | If Emacs is currently idle, and has been idle for N seconds (N < SECS), > | then it will call FUNCTION in SECS - N seconds from now. Using > | SECS <=3D N is not recommended if this function is invoked from an idle > | timer, because FUNCTION will then be called immediately. > |=20 > | If REPEAT is non-nil, do the action each time Emacs has been idle for > | exactly SECS seconds (that is, only once for each time Emacs becomes id= le). > |=20 > | This function returns a timer object which you can use in =E2=80=98canc= el-timer=E2=80=99. > |=20 > | [back] > `---- > >> >> So whatever you want to provide, make sure sync is automatic. And >> preferably supporting private sync options too. I have this in my emacs init.el=20 (run-at-time "10:15" 86400 'org-mobile-push) This works in combination with a cron job (a few minutes later) that syncs the files to my 'cloud', where my phone picks them up. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEENA/5pI9sGP3QMgwzq6HLMOmXo68FAlh4s0YACgkQq6HLMOmX o69N7hAAo5WBjyLtR57XMZeIJvx8Wt/+rwp5/HkSPvKksOVze6mqiZH+ANK8znUi g0BcPjam4oR/Zn1RzK5zmiQn1Qr8i4tcasnBfgCSTze+qzhKvJ88jglcXY5LDMVv pP/AwBx0jTEOhVEpCcQfjVKP1mMXkZP8ShRINLhUHy/mLm3uyjDysmbPP+LJVJnb ZcHZ/OiskqF7mDTie3BRIRY28YzGeIDilQeuD44z5SWWtXIIo+7/3H8s1ifUSV6H L3vX68qlg5hdVCrGQ2y4v0CK6Fs3eJhbK40jfWs+0ZJw/SBZlZwVCdLylc/jkCqj oFYXPm/AvtGxzTCVfgEGmjOh2nDJelxnF3yrbmRb5eWyW7XHWhIRuWjXq0Fe+nXA 6QnwRWZPhjge2bhb1bng0vI9ywOkJQ5X95jKWPv8JnoA1Dqc0muFN3Zob6fdJDr1 Y25UIvK2ylVBUDrErdbUz+hnxnve7BjrC/OLuGtpiKFMpXRY++Zrdk9jJ7m0jx4J d8m4sNcxpD/SE6/4Au6lhwR1bUCw2FhLttc+9vjQfRZjL+AtDD9R6sLKb64eJ9uM C8Nk/xSJmPHAEB+gFU3mcurHF+gSQC0CEHKxKMrp7YnwZE3/bo3SKvA+MbGEs9am bCJyTgB0RgG1ePEJG2KoYMEJaZXlbmlMMDR+L9Zaso/d7dWQ3l4= =AMbz -----END PGP SIGNATURE----- --=-=-=--