Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tag Position in Org Mode

Tags:

emacs

org-mode

When I create a tag next to a heading it aligns and moves to the right but not as far as I'd like.

How can I make sure the tags are aligned further away from the heading?

Thanks.

like image 273
usertest Avatar asked Jun 02 '11 05:06

usertest


People also ask

What is an org tag?

I use tags to classify certain important items in my notes and TODO lists so that I can later pull up a list of all of those items together when I need to find one (or when I want to see a cross-section of data). A tag in Org Mode is just a word surrounded by colons, appearing on the same line as the item's headline.

Why is ORG mode so great?

Elegant Markup Org mode is routinely used to build and manage complex workflows. It does this using an elegantly simple syntax that scales from basic markup to full LaTeX typesetting and from plain text notes to literate programs. Everything you need to get started is demonstrated in the example.

How do you add a link in Org mode?

Links in Org are plain text, and you can type or paste them straight into the buffer. By using this command, the links are automatically enclosed in double brackets, and you will be asked for the optional descriptive text.

How do I use tags in Emacs?

' ( 'find-tag' ) – find a tag, that is, use the Tags file to look up a definition. If there are multiple tags in the project with the same name, use ` C-u M-. ' to go to the next match. 'M-x find-tag-other-window' – selects the buffer containing the tag's definition in another window, and move point there.


2 Answers

In Emacs 23.3.1 (Org-mode version 6.33x), tags for a heading are right-aligned in accordance with the org-tags-column variable.

You can use M-x customize-variable RET org-tags-column RET to change this to suit your requirements.

like image 95
phils Avatar answered Sep 23 '22 09:09

phils


I know this is an oldie, but I just figured out this snippet that works like a charm in my i3wm setup so I might as well share it with everyone.

(add-hook 'focus-in-hook 
  (lambda () (progn 
    (setq org-tags-column (- 5 (window-body-width)))) (org-align-all-tags)))

(add-hook 'focus-out-hook 
  (lambda () (progn 
    (setq org-tags-column (- 5 (window-body-width)))) (org-align-all-tags)))
like image 20
Lean Bravo Avatar answered Sep 24 '22 09:09

Lean Bravo