Add Emacs global-set-tab-width
parent
805a3fbd4f
commit
56c842d4d8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue