From 56c842d4d8d2643b0e37ab1d2e294f4a2fdc16cc Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 27 Aug 2015 23:19:27 -0400 Subject: [PATCH] Add Emacs global-set-tab-width --- emacs.d/emacs.org | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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