From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Beck Subject: Re: Scroll agenda to a certain line after refresh or creation? Date: Fri, 13 Jun 2014 11:25:44 +0000 (UTC) Message-ID: References: <87tx7p6qif.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvPcX-00012h-N0 for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 07:26:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvPcR-0005J6-HJ for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 07:26:09 -0400 Received: from plane.gmane.org ([80.91.229.3]:57824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvPcR-0005Iu-7H for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 07:26:03 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WvPcK-0007xM-M5 for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 13:25:56 +0200 Received: from mail.polytec.de ([213.144.13.178]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Jun 2014 13:25:56 +0200 Received: from elwood151 by mail.polytec.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 13 Jun 2014 13:25:56 +0200 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 Bastien gnu.org> writes: > You can bind a key to this command: > > (lambda () > (interactive) > (goto-char > (text-property-any (point-min) (point-max) > 'face 'org-agenda-current-time))) > > > How can I apply a special face to this line to make it better visible > > (but only in this agenda view, not in others)? > > M-x customize-face RET org-agenda-current-time RET Salut Bastien, thanks a lot. Indeed that helps, but it arises 2 more questions... How can I test a command like the one you sent me without saving it in a buffer and binding a key to it? I'd like to just execute it like a shell command with M-x, but I did not find a way to do that. How can I define that this command is executed each time I build or refresh a certain (not all) block agenda? Kind regards Martin