[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to rename the agenda in org-mode?
From: |
Adam Porter |
Subject: |
Re: [O] How to rename the agenda in org-mode? |
Date: |
Sun, 3 Apr 2016 19:37:53 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
Eric S Fraga <e.fraga <at> ucl.ac.uk> writes:
>
> On Sunday, 3 Apr 2016 at 18:26, Sharon Kimble wrote:
>
> [...]
>
> > Okay, so how can I get the name shortened please? I've just measured it
> > and its actually taking up 3.5 inches! That is ridiculous and shouldn't
> > happen, so how can it be abbreviated or shortened?
>
> Isn't this really a tabbar question? Maybe look at providing your own
> function for displaying the tab when an agenda is displayed. See
> tabbar-tab-label-function?
Yes, I think this will do what you want:
(advice-add 'tabbar-buffer-tab-label :before-until
(lambda (tab)
(with-current-buffer (buffer-name (tabbar-tab-value tab))
(when (equal major-mode 'org-agenda-mode))
"Agenda")))