diff --git a/emacs.d/emacs.org b/emacs.d/emacs.org index d1b0eff..311c151 100644 --- a/emacs.d/emacs.org +++ b/emacs.d/emacs.org @@ -815,7 +815,14 @@ I use this primarily in [[sec:mode-hooks][mode hooks]], but I do generally prefe four characters: #+BEGIN_SRC emacs-lisp - (set-tab-width 4) + (defun global-set-tab-width (width) + "Set tab width to WIDTH and generate tab stops" + (interactive "nTab width: ") + (setq-default tab-width width) + (setq-default tab-stop-list + (number-sequence width 120 width))) + + (global-set-tab-width 4) #+END_SRC *** Indentation