emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Hide file names in agenda view
@ 2010-01-28 22:06 David A. Gershman
  2010-01-29  0:06 ` Matt Lundin
  0 siblings, 1 reply; 3+ messages in thread
From: David A. Gershman @ 2010-01-28 22:06 UTC (permalink / raw)
  To: Org-Mode List

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

Thanks!


----------------------------------------
David A. Gershman
gershman@dagertech.net
http://dagertech.net/gershman/
"It's all about the path!" --d. gershman

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Hide file names in agenda view
  2010-01-28 22:06 Hide file names in agenda view David A. Gershman
@ 2010-01-29  0:06 ` Matt Lundin
  2010-01-29  0:11   ` Richard Riley
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Lundin @ 2010-01-29  0:06 UTC (permalink / raw)
  To: David A. Gershman; +Cc: Org-Mode List

"David A. Gershman" <dagershman_dgt@dagertech.net> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Hide file names in agenda view
  2010-01-29  0:06 ` Matt Lundin
@ 2010-01-29  0:11   ` Richard Riley
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Riley @ 2010-01-29  0:11 UTC (permalink / raw)
  To: emacs-orgmode

Matt Lundin <mdl@imapmail.org> writes:

> "David A. Gershman" <dagershman_dgt@dagertech.net> 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)
|    ))
`----

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-01-29  0:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-28 22:06 Hide file names in agenda view David A. Gershman
2010-01-29  0:06 ` Matt Lundin
2010-01-29  0:11   ` Richard Riley

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).