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