Re: [O] auto-push to mobile (but only when editing org buffer)

2012-08-17 Thread Ken Mankoff
On Thu, Aug 16, 2012 at 2:54 PM, Ken Mankoff wrote: > Hi Marcel, > > On Wed, Aug 15, 2012 at 12:33 AM, Marcel van der Boom > wrote: >> Perhaps you will find https://gist.github.com/3111823 interesting. It >> contains a bit of code to do the org-mobile-push asynchronously (and >> notify me about

Re: [O] auto-push to mobile (but only when editing org buffer)

2012-08-16 Thread Ken Mankoff
Hi Marcel, On Wed, Aug 15, 2012 at 12:33 AM, Marcel van der Boom wrote: > Perhaps you will find https://gist.github.com/3111823 interesting. It > contains a bit of code to do the org-mobile-push asynchronously (and > notify me about it when done). This makes the push work in the > background, in

Re: [O] auto-push to mobile (but only when editing org buffer)

2012-08-15 Thread Marcel van der Boom
On di 14-aug-2012 19:10 Ken Mankoff wrote: > >>> How can I wrap that to only run when the active buffer is in Org >>> Mode? >> >> (run-at-time "00:10" 10 (lambda () (if (eq major-mode 'org-mode) >> (org-mobile-push > >That works well. After reading run-at-time documentation, the >"00:10"

Re: [O] auto-push to mobile (but only when editing org buffer)

2012-08-14 Thread Ken Mankoff
How can I wrap that to only run when the active buffer is in Org Mode? (run-at-time "00:10" 10 (lambda () (if (eq major-mode 'org-mode) (org-mobile-push That works well. After reading run-at-time documentation, the "00:10" isn't ideal. I now use the following, which syncs files every

Re: [O] auto-push to mobile (but only when editing org buffer)

2012-08-14 Thread Bastien
Hi Ken, Ken Mankoff writes: > How can I wrap that to > only run when the active buffer is in Org Mode? (run-at-time "00:10" 10 (lambda () (if (eq major-mode 'org-mode) (org-mobile-push HTH, -- Bastien

[O] auto-push to mobile (but only when editing org buffer)

2012-08-14 Thread Ken Mankoff
I'm trying to set up auto-pushing via org-mobile-push to make org-mode work more seamlessly with the iPhone. I have the following in my .emacs: (run-at-time "00:10" 10 'org-mobile-push) which is running org-mobile-push every 10 seconds. This is for testing. I'll reduce it to every 5 minutes once