[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tabs in xemacs



* Andrew Dixon <andrew.dixon@seranoa.com> spake thus:
> Alan Shutko wrote:
> > 
> > Andrew Dixon <andrew.dixon@seranoa.com> 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 to: