summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Dominik <carsten.dominik@gmail.com>2010-08-30 13:51:04 +0200
committerCarsten Dominik <carsten.dominik@gmail.com>2010-08-30 13:51:04 +0200
commitb212d2ed606128e4cde01f2d982f318977501363 (patch)
tree4c8cc204638f2413d802b2d58fcaebd6662082a6
parent9bc1d0c74f704da55d5fc0a1ac09b1056a76090c (diff)
downloadorg-mode-b212d2ed606128e4cde01f2d982f318977501363.tar.gz
Align tags after capture template tags insertion
* lisp/org-capture.el (org-capture-fill-template): Align tags after insertion.
-rw-r--r--lisp/org-capture.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index e544964..acbccc1 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1210,7 +1210,8 @@ The template may still contain \"%?\" for cursor positioning."
(when (string-match "\\S-" ins)
(or (equal (char-before) ?:) (insert ":"))
(insert ins)
- (or (equal (char-after) ?:) (insert ":")))))
+ (or (equal (char-after) ?:) (insert ":"))
+ (and (org-on-heading-p) (org-set-tags nil 'align)))))
((equal char "C")
(cond ((= (length clipboards) 1) (insert (car clipboards)))
((> (length clipboards) 1)