Comments
Huaiyu Zhu
huaiyu at gauss.almadan.ibm.com
Thu May 9 15:06:46 EDT 2002
Fernando Pérez <fperez528 at yahoo.com> wrote:
>Karl Pflästerer wrote:
>
>>> ... Is there a way to make emacs ignore lines that wouldn't be
>>> considered comments by the language when wrapping?
>>
>> I changed the value of `paragraph-start'. I did it like this:
>>
>> (add-hook 'python-mode-hook
>> (lambda ()
>> (setq paragraph-start "[ \t\n\f#]")))
>>
>> "[ \t\n\f]" is the default for this variable.
>>
>> bye
>> KP
>>
>
>THANK YOU!!!!!!
>
>I'd been hating life on this little thing for a long time (well, never
>intensely enough to really bother looking for a solution ;).
>
>I've used emacs for years, but I've just never bothered to learn enough on how
>to configure it to solve the few little quirks it still has for my taste.
>
>But this one was a fairly nagging one for me, so I _greatly_ appreciate your
>solution (I'm glad I stumled on this thread!)
Does this really work for you? After I added this, M-q no longer considers
multiline comments as a single paragraph. It also wraps long comment lines
without adding new # signs. Maybe I have some other settings in .emacs that
are interfering with this?
Huaiyu
More information about the Python-list
mailing list