help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: automatic new-line after 80 columns


From: Rodrigo Canellas
Subject: Re: automatic new-line after 80 columns
Date: Wed, 18 Feb 2009 15:49:33 -0300
User-agent: KMail/1.10.4 (Linux/2.6.27-11-generic; KDE/4.1.4; i686; ; )

Em Wednesday 18 February 2009 13:58:45 tyler escreveu:
> Rodrigo Canellas <rodrigo.canellas@tqtvd.com> writes:
> 
> >
> > I created a file '/var/tmp/t.cpp'.
> > Then when I typed 'C-u 80 C-x f', 'emacs' said 'Fill column set to 80 (was 
> > 70)'
> > And when I typed 'C-u 1 M-x auto-fill-mode', it did not say anything.
> 
> You need to customize c-ignore-auto-fill. By default autofill only works
> for c comments, but you can change this so that it works in code too.
> After doing this you example worked like you wanted it to (you may need
> to hit the tab key to get the filling to work after the line break is
> added).
> 
> Tyler
> 


OK! 

I inserted 

 '(fill-column 80)
 '(c-ignore-auto-fill (quote (string cpp)))

in my '.emacs' file and it worked fine!!


Thanks a lot!!

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]