Browse Source

Align tags after capture template tags insertion

* lisp/org-capture.el (org-capture-fill-template): Align tags
after insertion.
Carsten Dominik 14 years ago
parent
commit
b212d2ed60
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org-capture.el

+ 2 - 1
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)