From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Riley Subject: Re: Hide file names in agenda view Date: Fri, 29 Jan 2010 01:11:41 +0100 Message-ID: References: <20100128220653.7F715320056@mail.dagertech.net> <87tyu5kc5s.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NaeT9-0005Xa-IX for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 19:12:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NaeT4-0005WD-Re for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 19:12:15 -0500 Received: from [199.232.76.173] (port=53693 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NaeT4-0005WA-MJ for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 19:12:10 -0500 Received: from lo.gmane.org ([80.91.229.12]:40549) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NaeT3-0002T8-KZ for emacs-orgmode@gnu.org; Thu, 28 Jan 2010 19:12:09 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NaeSz-0005oX-00 for emacs-orgmode@gnu.org; Fri, 29 Jan 2010 01:12:05 +0100 Received: from 85.183.18.158 ([85.183.18.158]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Jan 2010 01:12:04 +0100 Received: from rileyrgdev by 85.183.18.158 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Jan 2010 01:12:04 +0100 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 Matt Lundin writes: > "David A. Gershman" writes: > >> I've been searching a while and thought it'd be simple to find. How can >> I suppress the file names in the agenda view? >> >> i.e. turn >> >> file2: 7:00- 8:00 alwkjekisdjksj >> file1: 10:00-11:00 alsdkfjasdlfkj >> >> into >> >> 7:00- 8:00 alwkjekisdjksj >> 10:00-11:00 alsdkfjasdlfkj >> > > This is controlled via the variable org-agenda-prefix-format. You can > type C-h v org-agenda-prefix-format to get all the details. > > Here's very *simple* setting to get rid of file names on all agenda > views: > > (setq org-agenda-prefix-format "%t %s") > > - Matt > Here's another example posted to this group a while back. ,---- | | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | ;; With this typing "L" in agenda and todo buffers allows toggling | ;; whether category/file names appear or not at the left or entries in | ;; agenda/todo listings. | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | | (defvar my-org-agenda-list-category t) | (defun my-org-agenda-toggle-list-category () | "Toggles whether category/file name appears or not at the left | of entries in agenda listings. Useful to unclutter listings." | (interactive) | (if my-org-agenda-list-category | (progn | (setq my-org-agenda-list-category nil) | (setq org-agenda-prefix-format | '((agenda . " %-12:c%?-12t% s") | (timeline . " % s") | (todo . " %-12:c") | (tags . " %-12:c") | (search . " %-12:c"))) | ) | (setq my-org-agenda-list-category t) | (setq org-agenda-prefix-format | '((agenda . " %?-12t% s") | (timeline . " % s") | (todo . " ") | (tags . " ") | (search . " "))) | ) | (org-agenda-redo)) | | (add-hook | 'org-mode-hook | (lambda () | (define-key org-agenda-keymap "L" 'my-org-agenda-toggle-list-category) | (define-key org-agenda-mode-map "L" 'my-org-agenda-toggle-list-category) | )) `----