Created
June 25, 2015 19:46
-
-
Save kcbanner/953cfab35ba73e3fd3f6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 4 space tabs | |
(defun my-generate-tab-stops (&optional width max) | |
"Return a sequence suitable for `tab-stop-list'." | |
(let* ((max-column (or max 200)) | |
(tab-width (or width tab-width)) | |
(count (/ max-column tab-width))) | |
(number-sequence tab-width (* tab-width count) tab-width))) | |
(setq default-tab-width 4) | |
(setq tab-width 4) | |
(setq tab-stop-list (my-generate-tab-stops)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment