From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Scroll agenda to a certain line after refresh or creation? Date: Fri, 13 Jun 2014 13:29:28 +0200 Message-ID: <87k38l59pj.fsf@bzg.ath.cx> References: <87tx7p6qif.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvPg1-0006B6-A9 for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 07:29:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvPfv-0006p7-5M for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 07:29:45 -0400 Received: from mail-s76.mailgun.info ([184.173.153.204]:49122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvPfu-0006oz-VF for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 07:29:39 -0400 In-Reply-To: (Martin Beck's message of "Fri, 13 Jun 2014 11:25:44 +0000 (UTC)") 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: Martin Beck Cc: emacs-orgmode@gnu.org Hi Martin, Martin Beck writes: > I'd like to just execute it like a shell command with M-x, but I did not > find a way to do that. M-: (...) RET > How can I define that this command is executed each time I build or refresh > a certain (not all) block agenda? You can add it in `org-agenda-finalize-hook' but this will execute it for all hook. And the command is dumb, if there is no time grid, it will throw an error. -- Bastien