1
0
Fork 0

Add Emacs global-set-tab-width

org
Mike Gerwitz 2015-08-27 23:19:27 -04:00
parent 805a3fbd4f
commit 56c842d4d8
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 8 additions and 1 deletions

View File

@ -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