emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to rename the agenda in org-mode?
@ 2016-04-03 12:39 Sharon Kimble
  2016-04-03 13:20 ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Sharon Kimble @ 2016-04-03 12:39 UTC (permalink / raw)
  To: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 294 bytes --]

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?

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to rename the agenda in org-mode?
  2016-04-03 12:39 How to rename the agenda in org-mode? Sharon Kimble
@ 2016-04-03 13:20 ` Nicolas Goaziou
  2016-04-03 17:26   ` Sharon Kimble
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2016-04-03 13:20 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: org-mode-email

Hello,

Sharon Kimble <boudiccas@skimble.plus.com> 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.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to rename the agenda in org-mode?
  2016-04-03 13:20 ` Nicolas Goaziou
@ 2016-04-03 17:26   ` Sharon Kimble
  2016-04-03 18:14     ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Sharon Kimble @ 2016-04-03 17:26 UTC (permalink / raw)
  To: org-mode-email

[-- Attachment #1: Type: text/plain, Size: 740 bytes --]

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Sharon Kimble <boudiccas@skimble.plus.com> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to rename the agenda in org-mode?
  2016-04-03 17:26   ` Sharon Kimble
@ 2016-04-03 18:14     ` Eric S Fraga
  2016-04-03 19:37       ` Adam Porter
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2016-04-03 18:14 UTC (permalink / raw)
  To: Sharon Kimble; +Cc: org-mode-email

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to rename the agenda in org-mode?
  2016-04-03 18:14     ` Eric S Fraga
@ 2016-04-03 19:37       ` Adam Porter
  2016-04-03 19:48         ` Adam Porter
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Porter @ 2016-04-03 19:37 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to rename the agenda in org-mode?
  2016-04-03 19:37       ` Adam Porter
@ 2016-04-03 19:48         ` Adam Porter
  2016-04-04 17:53           ` Sharon Kimble
  0 siblings, 1 reply; 7+ messages in thread
From: Adam Porter @ 2016-04-03 19:48 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: How to rename the agenda in org-mode?
  2016-04-03 19:48         ` Adam Porter
@ 2016-04-04 17:53           ` Sharon Kimble
  0 siblings, 0 replies; 7+ messages in thread
From: Sharon Kimble @ 2016-04-04 17:53 UTC (permalink / raw)
  To: Adam Porter; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]

Adam Porter <adam@alphapapa.net> writes:

> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-04 17:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-03 12:39 How to rename the agenda in org-mode? Sharon Kimble
2016-04-03 13:20 ` Nicolas Goaziou
2016-04-03 17:26   ` Sharon Kimble
2016-04-03 18:14     ` Eric S Fraga
2016-04-03 19:37       ` Adam Porter
2016-04-03 19:48         ` Adam Porter
2016-04-04 17:53           ` Sharon Kimble

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