From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: automatically org-mobile-push/pull ? Date: Thu, 11 Nov 2010 01:31:41 -0800 Message-ID: <4CDBB7FD.3070807@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=55448 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGTVU-0001Xp-8F for emacs-orgmode@gnu.org; Thu, 11 Nov 2010 04:31:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGTVT-0000Ck-2S for emacs-orgmode@gnu.org; Thu, 11 Nov 2010 04:31:47 -0500 Received: from mail-pz0-f41.google.com ([209.85.210.41]:34342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGTVS-0000CO-Ra for emacs-orgmode@gnu.org; Thu, 11 Nov 2010 04:31:46 -0500 Received: by pzk32 with SMTP id 32so485213pzk.0 for ; Thu, 11 Nov 2010 01:31:45 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Soichi, On Thursday 11 November 2010 01:11 AM, ishi soichi wrote: > Hi. Is there anyway to execute automatically "org-mobile-push/pull" ? > > For example, when starting Emacs, "org-mobile-pull" is done. And when > killing Emacs, "org-mobile-push". > You can customise these hooks, (add-hook 'after-init-hook 'org-mobile-pull) (add-hook 'kill-emacs-hook 'org-mobile-push) And put it in your init file (e.g. ~/.emacs or ~/.emacs.d/init.el). > Soichi Hope this helps. -- Suvayu Open source is the future. It sets us free.