Make emacs set-tab-width interactive
parent
ae958d92a4
commit
805a3fbd4f
|
@ -805,6 +805,7 @@ the tab width for display of the tab character and to generate the proper
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(defun set-tab-width (width)
|
(defun set-tab-width (width)
|
||||||
"Set tab width to WIDTH and generate tab stops"
|
"Set tab width to WIDTH and generate tab stops"
|
||||||
|
(interactive "nTab width: ")
|
||||||
(setq tab-width width)
|
(setq tab-width width)
|
||||||
(setq tab-stop-list
|
(setq tab-stop-list
|
||||||
(number-sequence width 120 width)))
|
(number-sequence width 120 width)))
|
||||||
|
|
Loading…
Reference in New Issue