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

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

Re: Use nxml mode, but without the auto formatting


From: Harry Putnam
Subject: Re: Use nxml mode, but without the auto formatting
Date: Sun, 23 Mar 2014 22:35:29 -0400
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.0.92 (gnu/linux)

Stefan <monnier@iro.umontreal.ca> writes:

>> Here is what happens if I hit <enter> after the last '>'.
>> ,----
>> |    <?xml version="1.0" encoding="utf-8"?>
>> |    <XLaunch xmlns="http://www.straightrunning.com/XmingNotes";
>> |             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> |             xsi:schemaLocation="http://www.straightrunning.com/XmingNotes
>> |                                 XLaunch.xsd" WindowMode="MultiWindow"
>> |             ClientMode="StartProgram" Program="xterm -g 84x36 -fg linen -bg
>> |                                                DarkSlateGrey -cr Skyblue
>> |                                                -fn
>> |                                                
>> dec-terminal-medium-r-normal--14-140-75-75-c-80-iso8859-1"
>> |             ClientStart="PuTTY" RemoteHost="192.168.1.42"
>> |             RemoteUser="reader" Clipboard="true"/>
>> `----
>
> Looks like it's simply the result of auto-fill-mode.
> AFAICT, nxml does not itself enable auto-fill, so it's probably due to your
> enabling auto-fill in nxml-mode, maybe indirectly (by enabling it in
> text-mode, which is a parent of nxml-mode).  Try
>
>    (add-hook 'nxml-mode-hook
>              (lambda () (auto-fill-mode -1)))

Haa... I was stumbling around the wrong approach.
Nice, thank you sir.




reply via email to

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