Skip to content

Instantly share code, notes, and snippets.

@kcbanner
Created June 25, 2015 19:46
Show Gist options
  • Save kcbanner/953cfab35ba73e3fd3f6 to your computer and use it in GitHub Desktop.
Save kcbanner/953cfab35ba73e3fd3f6 to your computer and use it in GitHub Desktop.
;; 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