* Andrew Dixon <[EMAIL PROTECTED]> spake thus:
> Alan Shutko wrote:
> > 
> > Andrew Dixon <[EMAIL PROTECTED]> writes:
> > 
> > > Does anyone know how to set xemacs to use 4 spaces when you hit the tab
> > > key?
> > 
> > What mode?  
> 
> C programming mode.  (That's a guess.  I don't know anything about
> xemacs modes but I'm using it to edit C source files.)

To make emacs use proper tabs in c & c++ mode, add this to ~/.emacs.el:

;; proper tabs for C/C++ code
(add-hook 'c++-mode-hook
     '(lambda ()
        (setq c-basic-offset 8)))
(add-hook 'c-mode-hook
     '(lambda ()
        (setq c-basic-offset 8)))
                        
Regards, Stig

-- 
www.brautaset.org

Reply via email to