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: Stefan
Subject: Re: Use nxml mode, but without the auto formatting
Date: Sun, 23 Mar 2014 18:19:25 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> 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)))


-- Stefan




reply via email to

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