Re: emacs
On Sat, 30 Oct 1999, James Sasitorn wrote:
> Im having some difficulties using the "save options" in xemacs21.
> Also does anyone know the config option line to set the c/c++/java
> default tab width?
I use XEmacs 20.4, and have no idea about v.21. In my .emacs I have
included the lines
(add-hook 'c-mode-common-hook
'(lambda ( )
(c-toggle-auto-hungry-state 1)
(setq c-comment-continuation-stars "*")
(setq c-indent-comments-syntactically-p t)
(setq c-basic-offset 8)
(setq tab-width 8)
(setq indent-tabs-mode nil))
'turn-on-auto-fill)
tab-width is the no. of spaces per tab, and setting the variable
indent-tabs-mode to nil causes all indentation to be done with spaces. To
see an explanation of c-basic-offset do 'C-h C-i cc-mode' and go to the
node 'Customizing Indentation'. I am far from savvy re all this, so there
may be better solutions.
Cheers,
Raghavendra.
_______________________________________________________________
N. Raghavendra, Mehta Research Institute, Chhatnag Road, Jhusi,
Allahabad 211 019, India.
Fax: 91-532-667576; Phone: 667511*2020 (O) 667511*4020 (H)
---------------------------------------------------------------
Reply to:
- References:
- emacs
- From: "James Sasitorn" <camus@rice.edu>