From: Richard Riley <rileyrgdev@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Hide file names in agenda view
Date: Fri, 29 Jan 2010 01:11:41 +0100 [thread overview]
Message-ID: <hjt93t$7ps$1@ger.gmane.org> (raw)
In-Reply-To: 87tyu5kc5s.fsf@fastmail.fm
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)
| ))
`----
prev parent reply other threads:[~2010-01-29 0:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='hjt93t$7ps$1@ger.gmane.org' \
--to=rileyrgdev@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.