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

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

Re: How to set line wrap


From: Anselm Helbig
Subject: Re: How to set line wrap
Date: Tue, 22 Dec 2009 16:16:26 +0100

> > > > > Could some tell me how I can set the line wrap to 80 characters?
> > > [...]
> > > Thank you for your reply.
> > > I have already tried C-u 5 C-x f.  It did not do anything.
> > > Are you recommending that I put the following in my ~/.emacs?
> >
> > > (setq-default fill-column 5)
> > > (add-hook 'php-mode-hook 'turn-on-auto-fill)
> >
> > > I've never tried to personalize Emacs before.  So, please correct me
> > > if I am making a mistake.
>
> [...]
>
> I just tried it.  I don't notice anything different.
> What should I be looking for?  Should the color change after five
> characters?

For php-mode auto-fill seems to only work within comments - in general
it doesn't make much sense to use auto-fill for programming. Start
typing a PHP comment and you'll see what auto-fill-mode does.

Regards, 

Anselm


-- 
Anselm Helbig - http://mnemonikk.org/


reply via email to

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