Browse Source

Turn off indent-tabs-mode when org-indent-mode is on

This makes for peter (if still imperfect) tag alignment.

Patch by Jason Dunsmore
Carsten Dominik 15 years ago
parent
commit
4a03e44858
2 changed files with 6 additions and 0 deletions
  1. 5 0
      lisp/ChangeLog
  2. 1 0
      lisp/org-indent.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2010-04-26  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-indent.el (org-indent-mode): Turn off `indent-tabs-mode'
+	which messes up alignment of tags.
+
 2010-04-25  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org-clock.el (org-clock-cancel, org-clock-out): Make sure

+ 1 - 0
lisp/org-indent.el

@@ -131,6 +131,7 @@ FIXME:  How to update when broken?"
       (setq org-indent-mode nil)
     (if org-indent-mode
 	(progn
+	  (org-set-local 'indent-tabs-mode nil)
 	  (or org-indent-strings (org-indent-initialize))
 	  (when org-indent-mode-turns-off-org-adapt-indentation
 	    (org-set-local 'org-adapt-indentation nil))