From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Toggle 'closed' in org-agenda-log-mode-items Date: Thu, 30 Jul 2009 17:10:15 -0500 Message-ID: <211769420907301510l433cbed3kae0b5ec9a56f6315@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWdpL-0005zT-VW for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 18:10:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWdpK-0005xY-J5 for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 18:10:18 -0400 Received: from [199.232.76.173] (port=39354 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWdpK-0005x1-5c for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 18:10:18 -0400 Received: from qw-out-1920.google.com ([74.125.92.144]:58397) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWdpI-0003UR-Vv for emacs-orgmode@gnu.org; Thu, 30 Jul 2009 18:10:17 -0400 Received: by qw-out-1920.google.com with SMTP id 5so1214587qwf.24 for ; Thu, 30 Jul 2009 15:10:16 -0700 (PDT) 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 Hello, I know that I can set this variable or define a custom agenda view if I only want to see clocked items in the agenda: (setq org-agenda-log-mode-items (quote (clock))) But, I like the way that the 'l' and 'R' keys work in the agenda, where they show/hide the log and the clock report. Is there a way to define something similar for the showing/hiding of Closed log items in the agenda? I'm not very good at lisp, so something like this pseudo-code: (defun org-toggle-agenda-show-closed-logs () ;; pseudo code ------ if org-agenda-log-mode-items contains 'closed' then remove 'closed' from org-agenda-log-mode-items else add 'closed' to org-agenda-log-mode-items (refresh the agenda view) ) (define-key org-mode-map (kbd "") 'org-toggle-agenda-show-closed-logs) Thanks for any feedback, --Nate