Re: [O] How to rename the agenda in org-mode?
Adam Porterwrites: > Oops, that'll teach me to edit elisp without aggressive-indent-mode. :) > This should work: > > (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" Brilliant, thanks very much Adam, that works a treat. Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk Debian 8.4, fluxbox 1.3.7, emacs 25.0.92 signature.asc Description: PGP signature
Re: [O] How to rename the agenda in org-mode?
Oops, that'll teach me to edit elisp without aggressive-indent-mode. :) This should work: (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"
Re: [O] How to rename the agenda in org-mode?
Eric S Fraga 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")))
Re: [O] How to rename the agenda in org-mode?
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? -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-668-g809a83
Re: [O] How to rename the agenda in org-mode?
Nicolas Goaziouwrites: > Hello, > > Sharon Kimble writes: > >> Currently my org-mode agenda is showing in tabbar as "Org-Agenda 21 days >> Diary Ddl Habit", how can I get it just showing as 'Org-Agenda' >> please? > > IIRC, some mechanisms in "org-agenda.el" rely on a specific agenda name. > So I suggest not to do that. > 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? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk Debian 8.3, fluxbox 1.3.7, emacs 25.0.92 signature.asc Description: PGP signature
Re: [O] How to rename the agenda in org-mode?
Hello, Sharon Kimblewrites: > Currently my org-mode agenda is showing in tabbar as "Org-Agenda 21 days > Diary Ddl Habit", how can I get it just showing as 'Org-Agenda' > please? IIRC, some mechanisms in "org-agenda.el" rely on a specific agenda name. So I suggest not to do that. Regards, -- Nicolas Goaziou