From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: auto-push to mobile (but only when editing org buffer) Date: Tue, 14 Aug 2012 18:04:59 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1S2g-0006yQ-TA for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 21:05:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1S2f-0000nx-SQ for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 21:05:02 -0400 Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:47197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1S2f-0000ln-Ku for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 21:05:01 -0400 Received: by lahd3 with SMTP id d3so591639lah.0 for ; Tue, 14 Aug 2012 18:05:00 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 I'm done testing. But it runs even when I'm just editing ~/.emacs. How can I wrap that to only run when the active buffer is in Org Mode? Thanks, -k.