all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: August <fusionfive@comhem.se>
Subject: Re: enabling auto fill mode for XML documents
Date: Mon, 31 Jan 2005 14:05:19 +0100	[thread overview]
Message-ID: <1107176719.5316.7.camel@c83-250-201-122.bredband.comhem.se> (raw)
In-Reply-To: <200501302028.32047.wolfgang@jeltsch.net>

On sön, 2005-01-30 at 20:28 +0100, Wolfgang Jeltsch wrote:
> Hello,
> 
> I want the auto fill minor mode to be automatically enabled for all buffers 
> using the nXML major mode.  Alas, all previous attempts and tipps to realize 
> this (like putting turn-on-auto-fill-mode in an nXML hook) didn't work.  What 
> is a good way to achieve what I want?
> 
> Best wishes,
> Wolfgang
> 
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Just tried out the nXML major mode and for me it works fine with 
`(auto-fill-mode 1)' in the mode hook. I have the following lines in
my .emacs init file:

(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/nxml-
mode-20041004")
(load "rng-auto.el")
(defun my-nxml-mode-hook ()
  (auto-fill-mode 1))
(add-hook 'nxml-mode-hook 'my-nxml-mode-hook)

Also consider refill-mode as it refills the paragraph even when you
insert/delete words in the middle of it. If you want to use it, change
the mode hook to:

(defun my-nxml-mode-hook ()
  (refill-mode 1))

-- 
August

  reply	other threads:[~2005-01-31 13:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-30 19:28 enabling auto fill mode for XML documents Wolfgang Jeltsch
2005-01-31 13:05 ` August [this message]
2005-01-31 13:26   ` Wolfgang Jeltsch
     [not found] <mailman.27.1107114085.2841.help-gnu-emacs@gnu.org>
2005-01-31 19:18 ` Alan Mackenzie
2005-02-01  8:35   ` Wolfgang Jeltsch
     [not found]   ` <mailman.274.1107248105.2841.help-gnu-emacs@gnu.org>
2005-02-01  9:48     ` Barry Margolin

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

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

  git send-email \
    --in-reply-to=1107176719.5316.7.camel@c83-250-201-122.bredband.comhem.se \
    --to=fusionfive@comhem.se \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.