From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: Columns widths of block agenda? Date: Tue, 17 Jun 2014 20:50:39 +0200 Message-ID: <86d2e78j5s.fsf@somewhere.org> References: <87oaxsx96n.fsf@hornfels.zedat.fu-berlin.de> <87a99b4ppa.fsf@gmail.com> <87d2e7y356.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org "Loris Bennett" wrote: > Nick Dokos writes: >> "Loris Bennett" 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