merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 27 Oct 2009 14:49:59 +0200
changeset 190 f511a2b4694b
parent 189 c3ec8e16a007 (diff)
parent 187 3a0f6acd7e2b (current diff)
child 191 abe708ccf6e5
merged
.emacs-my
--- a/.emacs-my	Fri Oct 16 15:13:08 2009 +0300
+++ b/.emacs-my	Tue Oct 27 14:49:59 2009 +0200
@@ -831,11 +831,12 @@
 (setq-default indent-tabs-mode nil)     ; t - будут вставляться \t
 (setq tab-always-indent t)
 (setq c-tab-always-indent t)
-(let ( (line-width 400) )
-  (setq i (+ (/ line-width 4) 1))
+(let ( (line-width 400) i )
+  (setq i (* (ceiling line-width 4) 4))
   (setq tab-stop-list nil)
-  (while (> (setq i (- i 1)) 0)
-    (setq tab-stop-list (cons (* i 4) tab-stop-list))))
+  (while (>= i 0)
+    (setq tab-stop-list (cons i tab-stop-list))
+    (setq i (- i 4))))
 
 ;; ----------------------------------------------------------------------
 ;; Diff.