emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Columns widths of block agenda?
Date: Tue, 17 Jun 2014 20:50:39 +0200	[thread overview]
Message-ID: <86d2e78j5s.fsf@somewhere.org> (raw)
In-Reply-To: 87d2e7y356.fsf@hornfels.zedat.fu-berlin.de

"Loris Bennett" wrote:
> Nick Dokos <ndokos-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>> "Loris Bennett" <loris.bennett-j/7cz5qe3tpn68oJJulU0Q@public.gmane.org> writes:
>>
>>> Can someone tell me where I can modify the widths of the columns in a
>>> block agenda?  Specifically I would like to increase the width of the
>>> first column, which currently contains the category or file name of the
>>> task.
>>
>> C-h v org-agenda-prefix-format RET
>
> Ah, thanks, Nick.
>
> However, from the documentation, it doesn't look like it is possible to
> have the categories starting in the same column if some have a category
> icon and some don't, i.e. there is no way of inserting spaces to
> compensate when the category has no icon.  So with
>
>   %i %-12:c%?-12t% s
>
> I get
>
>    calendar:   11:00-12:30 Meeting
>   X task:       14:00 Fix agenda
>
> where X is my icon.
>
> Is my interpretation correct?

No, IIRC, you should have a fallback case:

--8<---------------cut here---------------start------------->8---
     (setq org-agenda-category-icon-alist
           `(("work" ,(concat icon-dir "my_briefcase.png")
              nil nil :ascent center)
             ("House" ,(concat icon-dir "toolbar_home.png")
              nil nil :ascent center)
             ("" '(space . (:height (16) :width (16))))))
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sebastien Vauban

      reply	other threads:[~2014-06-17 18:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-17  7:54 Columns widths of block agenda? Loris Bennett
2014-06-17 13:42 ` Nick Dokos
2014-06-17 15:19   ` Loris Bennett
2014-06-17 18:50     ` Sebastien Vauban [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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86d2e78j5s.fsf@somewhere.org \
    --to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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 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).