How to set tab-width to 4 spaces in emacs ??
drobinow at yahoo.com
Thu Oct 11 16:53:20 CEST 2001
"Thomas Weholt" <t-weh at online.no> wrote in message news:<1J1x7.14385$tu6.623674 at news1.oke.nextra.no>...
> Trying to set the tab-width in emacs to 4 spaces without luck. Using
> Mandrake 8.1 ( great distro btw, python 2.1.1, postgresql 7.1.3 etc. try it
> now !)
Put the following in your .emacs
You may find comments in the source of python-mode.el to be helpful.
(defun my-pystuff ()
(setq tab-width 4
(add-hook 'python-mode-hook 'my-pystuff)
More information about the Python-list