From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Agenda in the mode-line? Date: Sat, 03 Aug 2013 11:48:42 +0800 Message-ID: <87li4j77tx.fsf@ericabrahamsen.net> References: <874nb86txq.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5SpL-0006MO-0L for emacs-orgmode@gnu.org; Fri, 02 Aug 2013 23:48:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V5SpG-00063E-4C for emacs-orgmode@gnu.org; Fri, 02 Aug 2013 23:48:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:47742) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5SpF-000635-ND for emacs-orgmode@gnu.org; Fri, 02 Aug 2013 23:48:18 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V5SpE-0008Us-70 for emacs-orgmode@gnu.org; Sat, 03 Aug 2013 05:48:16 +0200 Received: from 221.216.167.20 ([221.216.167.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Aug 2013 05:48:16 +0200 Received: from eric by 221.216.167.20 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 03 Aug 2013 05:48:16 +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 Kyle Sexton writes: > Bastien writes: > >> Kyle Sexton writes: >> >>> Does anyone know if there is a feature to show something like 'Tasks: 4' >>> on the mode-line for tasks that are currently open? >> >> This is the default behavior since long: hitting "I" to clock in a >> task in the agenda or C-c C-x C-i in an Org buffer will append the >> task name to the modeline, together with the time spent. >> >> Don't you have this? Even with emacs -Q? >> > > Sorry, it appears I didn't make my use case very clear. What you are > speaking of is clocking into a task, and indeed that does show up on the > modeline. > > What I am after is more of a overview of "How many total TODO tasks do I > have", ideally with some function to limit or match based on tag. > > Something like this in the modeline: > > #+BEGIN_EXAMPLE > [Work: 3/10 Home: 2/20] > ^--- Total number of TODOs in home.org > ^------ Total number of TODOs due today in home.org > #+END_EXAMPLE > > That way I have a constant reminder of the number of things left without > having to pull up the agenda. > > -- > Kyle Sexton A lighter-weight and easier to code version of this might be produced directly from the current *Org Agenda* buffer. Ie, every time you call org-agenda, or org-agenda-redo, you could build a variable that creates this mode line, maybe in `org-agenda-finalize-hook'. So long as you don't need separate queries for the agenda buffer and the modeline, this seems like it would work fine. Then your timer could run `org-agenda-redo', or you could just bind that to a key in the global or org-mode keymaps. Eric