From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin Beck" Subject: Scroll agenda to a certain line after refresh or creation? Date: Thu, 5 Jun 2014 13:34:26 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsVwJ-00087T-P4 for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 07:34:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsVwC-0002qu-1t for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 07:34:35 -0400 Received: from mout.web.de ([212.227.17.12]:65369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsVwB-0002qg-OP for emacs-orgmode@gnu.org; Thu, 05 Jun 2014 07:34:27 -0400 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-mailinglist
Hi,
 
I have an agenda view which lists all my activities during the last days to easily find them for adding info or continue working on them.
 
It is defined as a custom agenda command like that:
("ip" "past 7d +3d" agenda "" ((org-agenda-overriding-header "Activities during last 7 days") (org-agenda-start-day "-7d") (org-agenda-span 10) (org-agenda-repeating-timestamp-show-all nil) (org-agenda-include-inactive-timestamps t) (org-agenda-entry-types (quote (:deadline :timestamp :sexp)))))
 
This agenda view gets quite long and confusing for the eye.
 
Can I let the agenda scroll automatically to the line with the current time, which looks like that (naturally, the time is not a constant) after building or rebuilding it?
              13:24...... now - - - - - - - - - - - - - - - - - - - - - - - - -
 
How can I apply a special face to this line to make it better visible (but only in this agenda view, not in others)?
 
Kind regards
 
Martin
 
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 12:41:12 +0200 Message-ID: <87tx7p6qif.fsf@bzg.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvOvB-0005mu-V6 for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 06:41:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvOv5-0004fk-Qe for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 06:41:21 -0400 Received: from mail-s76.mailgun.info ([184.173.153.204]:51096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvOv5-0004fg-Mf for emacs-orgmode@gnu.org; Fri, 13 Jun 2014 06:41:15 -0400 In-Reply-To: (Martin Beck's message of "Thu, 5 Jun 2014 13:34:26 +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: Martin Beck Cc: emacs orgmode-mailinglist Hi Martin, "Martin Beck" writes: > Can I let the agenda scroll automatically to the line with the > current time, which looks like that (naturally, the time is not a > constant) after building or rebuilding it? 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 HTH, -- Bastien 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 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