unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: pjb@informatimago.com (Pascal J. Bourguignon)
To: help-gnu-emacs@gnu.org
Subject: Re: How to set line wrap
Date: Tue, 22 Dec 2009 22:54:37 +0100	[thread overview]
Message-ID: <87skb2r7xe.fsf@hubble.informatimago.com> (raw)
In-Reply-To: 560ec1e5-5fd8-44a2-9083-b0922d812fa8@n31g2000vbt.googlegroups.com

RAYHAN MUKTADER <rmuktader@gmail.com> writes:

> On Dec 22, 10:16 am, Anselm Helbig <anselm.helbig
> +news2...@googlemail.com> wrote:
>> > > > > > 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/
>
> I did not see any change with comments either.  O well.  I just wanted
> some sort of warning if I exceed 80 characters in a single line.

(when (require 'column-marker nil t)
  (column-marker-1 80))

There are three pre-defined column markers, but you can easily add
more if you need them.  This displays the characters under the
specified column in a specific face.


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

"Klingon function calls do not have "parameters" -- they have
"arguments" and they ALWAYS WIN THEM."


  reply	other threads:[~2009-12-22 21:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-21 23:56 How to set line wrap RAYHAN MUKTADER
2009-12-22 12:48 ` Anselm Helbig
2009-12-22 14:21   ` RAYHAN MUKTADER
2009-12-22 14:32     ` Anselm Helbig
2009-12-22 15:07       ` RAYHAN MUKTADER
2009-12-22 15:16         ` Anselm Helbig
2009-12-22 21:23           ` RAYHAN MUKTADER
2009-12-22 21:54             ` Pascal J. Bourguignon [this message]
2009-12-22 22:35             ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87skb2r7xe.fsf@hubble.informatimago.com \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).