emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to align tag to the right margin
@ 2010-12-07  7:59 Chao LU
  2010-12-07 15:24 ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Chao LU @ 2010-12-07  7:59 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 336 bytes --]

Dear all,

Got another question, as titled, how to align tag to the right margin? My
org tag look like below:

*|**** blablabalblablab
:Book:Doc:EBook:STAR5:                    *|*
|
|

---------------------

|

---------------------------->There's some blank between the tags and the
right boundary of Emacs.

Thanks in advance.

Chao

[-- Attachment #1.2: Type: text/html, Size: 810 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: How to align tag to the right margin
  2010-12-07  7:59 How to align tag to the right margin Chao LU
@ 2010-12-07 15:24 ` Eric S Fraga
  2010-12-07 20:48   ` Chao LU
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2010-12-07 15:24 UTC (permalink / raw)
  To: Chao LU; +Cc: emacs-orgmode

Chao LU <loochao@gmail.com> writes:

> Dear all,
>
> Got another question, as titled, how to align tag to the right
> margin? My org tag look like below:

check out the variable =org-tags-column= (C-h v org-tags-column RET).
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
: using Org-mode version 7.3 (release_7.3.221.gb3e16)

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

* Re: How to align tag to the right margin
  2010-12-07 15:24 ` Eric S Fraga
@ 2010-12-07 20:48   ` Chao LU
  2010-12-07 20:59     ` Martin Pohlack
  0 siblings, 1 reply; 5+ messages in thread
From: Chao LU @ 2010-12-07 20:48 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 706 bytes --]

Hi Eric,

Yes, it works, by (setq org-tags-column 90). But new question arise, it does
not apply to the tags which have already been there (only new tags after the
modification of the alignment number), so how could I get all the tags
updated?

Thanks and best,

Chao

On Tue, Dec 7, 2010 at 10:24 AM, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:

> Chao LU <loochao@gmail.com> writes:
>
> > Dear all,
> >
> > Got another question, as titled, how to align tag to the right
> > margin? My org tag look like below:
>
> check out the variable =org-tags-column= (C-h v org-tags-column RET).
> --
> : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1
> : using Org-mode version 7.3 (release_7.3.221.gb3e16)
>

[-- Attachment #1.2: Type: text/html, Size: 1128 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: How to align tag to the right margin
  2010-12-07 20:48   ` Chao LU
@ 2010-12-07 20:59     ` Martin Pohlack
  2010-12-07 22:19       ` Rodney Price
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Pohlack @ 2010-12-07 20:59 UTC (permalink / raw)
  To: Chao LU, org-mode

On 07.12.2010 21:48, Chao LU wrote:
> Hi Eric,
> 
> Yes, it works, by (setq org-tags-column 90). But new question arise, it does
> not apply to the tags which have already been there (only new tags after the
> modification of the alignment number), so how could I get all the tags
> updated?

org-align-all-tags, should be bound to c-u c-u c-c c-c.

HTH,
Martin

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

* Re: How to align tag to the right margin
  2010-12-07 20:59     ` Martin Pohlack
@ 2010-12-07 22:19       ` Rodney Price
  0 siblings, 0 replies; 5+ messages in thread
From: Rodney Price @ 2010-12-07 22:19 UTC (permalink / raw)
  To: org-mode


C-u C-c C-q works for me.

I switch between machines with different monitors, and I find that in
the agenda view, the tags can intrude on the headline space.  That is,
an entry I make on one machine puts the tag in a different place than an
entry I make on another machine.  The following snippet lines up the
tags in the agenda view.

;; Place tags close to the right-hand side of the window
(add-hook 'org-finalize-agenda-hook 'place-agenda-tags)
(defun place-agenda-tags ()
  "Put the agenda tags by the right border of the agenda window."
  (setq org-agenda-tags-column (- 4 (window-width)))
  (org-agenda-align-tags))

-Rod


Martin Pohlack <mp26@os.inf.tu-dresden.de> writes:

> On 07.12.2010 21:48, Chao LU wrote:
>> Hi Eric,
>> 
>> Yes, it works, by (setq org-tags-column 90). But new question arise, it does
>> not apply to the tags which have already been there (only new tags after the
>> modification of the alignment number), so how could I get all the tags
>> updated?
>
> org-align-all-tags, should be bound to c-u c-u c-c c-c.
>
> HTH,
> Martin
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2010-12-07 22:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-07  7:59 How to align tag to the right margin Chao LU
2010-12-07 15:24 ` Eric S Fraga
2010-12-07 20:48   ` Chao LU
2010-12-07 20:59     ` Martin Pohlack
2010-12-07 22:19       ` Rodney Price

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