From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: auto-push to mobile (but only when editing org buffer) Date: Wed, 15 Aug 2012 03:36:15 +0200 Message-ID: <87pq6thr74.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1SWV-00025L-W3 for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 21:35:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1SWU-0000kd-Ue for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 21:35:51 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:44095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1SWU-0000jA-NJ for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 21:35:50 -0400 Received: by wibhq4 with SMTP id hq4so4088692wib.12 for ; Tue, 14 Aug 2012 18:35:49 -0700 (PDT) In-Reply-To: (Ken Mankoff's message of "Tue, 14 Aug 2012 18:04:59 -0700") 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: Ken Mankoff Cc: emacs-orgmode@gnu.org 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