emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Remove filename from agenda view?
@ 2013-01-04  3:23 Boyan Penkov
  2013-01-04  5:28 ` Nick Dokos
  0 siblings, 1 reply; 5+ messages in thread
From: Boyan Penkov @ 2013-01-04  3:23 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hello,

In the default agenda view (C-c a), the leftmost column is the org-mode file name from which the given item stems.  However, I use a single file for all my actionables, and would like to eliminate this column, as it wastes 12 or so characters worth of space on the left of the agenda.

Can anyone point me in the right direction with a .emacs file snippet?

Thanks!
--
Boyan Penkov

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

* Re: Remove filename from agenda view?
  2013-01-04  3:23 Remove filename from agenda view? Boyan Penkov
@ 2013-01-04  5:28 ` Nick Dokos
  2013-01-04  7:02   ` Carsten Dominik
  0 siblings, 1 reply; 5+ messages in thread
From: Nick Dokos @ 2013-01-04  5:28 UTC (permalink / raw)
  To: Boyan Penkov; +Cc: emacs-orgmode@gnu.org

Boyan Penkov <boyan.penkov@gmail.com> wrote:

> Hello,
> 
> In the default agenda view (C-c a), the leftmost column is the org-mode file name from which the given item stems.  However, I use a single file for all my actionables, and would like to eliminate this column, as it wastes 12 or so characters worth of space on the left of the agenda.
> 

Not quite: it is the "category" of the item which, if absent, is
defaulted to the filename. Check section 10.4.1, "Categories", of
the org manual for more information - evaluate the following:

	(info "(org) Categories")

> Can anyone point me in the right direction with a .emacs file snippet?
> 

AFAIK, you cannot eliminate it in any simple way.

Nick

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

* Re: Remove filename from agenda view?
  2013-01-04  5:28 ` Nick Dokos
@ 2013-01-04  7:02   ` Carsten Dominik
  2013-01-04 13:52     ` Boyan Penkov
  2013-01-04 15:27     ` Nick Dokos
  0 siblings, 2 replies; 5+ messages in thread
From: Carsten Dominik @ 2013-01-04  7:02 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode@gnu.org, Boyan Penkov


On 4.1.2013, at 06:28, Nick Dokos <nicholas.dokos@hp.com> wrote:

> Boyan Penkov <boyan.penkov@gmail.com> wrote:
> 
>> Hello,
>> 
>> In the default agenda view (C-c a), the leftmost column is the org-mode file name from which the given item stems.  However, I use a single file for all my actionables, and would like to eliminate this column, as it wastes 12 or so characters worth of space on the left of the agenda.
>> 
> 
> Not quite: it is the "category" of the item which, if absent, is
> defaulted to the filename. Check section 10.4.1, "Categories", of
> the org manual for more information - evaluate the following:
> 
> 	(info "(org) Categories")
> 
>> Can anyone point me in the right direction with a .emacs file snippet?
>> 
> 
> AFAIK, you cannot eliminate it in any simple way.

Well, you can customize org-agenda-prefix-format and remove the "%-12:c" from each of the strings where you do not want the category to be shown.  Note that the two leading space characters in these formats are necessary IIRC, for technical reasons.

(setq org-agenda-prefix-format
      '((agenda . " %i %?-12t% s")
        (timeline . "  % s")
        (todo . " %i ")
        (tags . " %i ")
        (search . " %i "))


- Carsten

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

* Re: Remove filename from agenda view?
  2013-01-04  7:02   ` Carsten Dominik
@ 2013-01-04 13:52     ` Boyan Penkov
  2013-01-04 15:27     ` Nick Dokos
  1 sibling, 0 replies; 5+ messages in thread
From: Boyan Penkov @ 2013-01-04 13:52 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode


--
Boyan Penkov




On Jan 4, 2013, at 2:02 AM, Carsten Dominik <carsten.dominik@gmail.com> wrote:

> 
> On 4.1.2013, at 06:28, Nick Dokos <nicholas.dokos@hp.com> wrote:
> 
>> Boyan Penkov <boyan.penkov@gmail.com> wrote:
>> 
>>> Hello,
>>> 
>>> In the default agenda view (C-c a), the leftmost column is the org-mode file name from which the given item stems.  However, I use a single file for all my actionables, and would like to eliminate this column, as it wastes 12 or so characters worth of space on the left of the agenda.
>>> 
>> 
>> Not quite: it is the "category" of the item which, if absent, is
>> defaulted to the filename. Check section 10.4.1, "Categories", of
>> the org manual for more information - evaluate the following:
>> 
>> 	(info "(org) Categories")
>> 
>>> Can anyone point me in the right direction with a .emacs file snippet?
>>> 
>> 
>> AFAIK, you cannot eliminate it in any simple way.
> 
> Well, you can customize org-agenda-prefix-format and remove the "%-12:c" from each of the strings where you do not want the category to be shown.  Note that the two leading space characters in these formats are necessary IIRC, for technical reasons.
> 
> (setq org-agenda-prefix-format
>      '((agenda . " %i %?-12t% s")
>        (timeline . "  % s")
>        (todo . " %i ")
>        (tags . " %i ")
>        (search . " %i "))

I can confirm that this works pretty brilliantly.

Thanks, Carsten!

> 
> 
> - Carsten
> 

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

* Re: Remove filename from agenda view?
  2013-01-04  7:02   ` Carsten Dominik
  2013-01-04 13:52     ` Boyan Penkov
@ 2013-01-04 15:27     ` Nick Dokos
  1 sibling, 0 replies; 5+ messages in thread
From: Nick Dokos @ 2013-01-04 15:27 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode@gnu.org, Boyan Penkov

Carsten Dominik <carsten.dominik@gmail.com> wrote:

> 
> On 4.1.2013, at 06:28, Nick Dokos <nicholas.dokos@hp.com> wrote:
> 
> > Boyan Penkov <boyan.penkov@gmail.com> wrote:
> > ...
> >> Can anyone point me in the right direction with a .emacs file snippet?
> > 
> > AFAIK, you cannot eliminate it in any simple way.
> 
> Well, you can customize org-agenda-prefix-format and remove the "%-12:c" from each of the strings where you do not want the category to be shown.  Note that the two leading space characters in these formats are necessary IIRC, for technical reasons.
> 
> (setq org-agenda-prefix-format
>       '((agenda . " %i %?-12t% s")
>         (timeline . "  % s")
>         (todo . " %i ")
>         (tags . " %i ")
>         (search . " %i "))
> 
> 

I should have known better - thanks!

Nick

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

end of thread, other threads:[~2013-01-04 15:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-04  3:23 Remove filename from agenda view? Boyan Penkov
2013-01-04  5:28 ` Nick Dokos
2013-01-04  7:02   ` Carsten Dominik
2013-01-04 13:52     ` Boyan Penkov
2013-01-04 15:27     ` Nick Dokos

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).