[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Slash (?) matching in XML and HTML mode
From: |
Stefan Monnier |
Subject: |
Re: Slash (?) matching in XML and HTML mode |
Date: |
Mon, 20 Jan 2014 12:31:19 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> When I type the slash in /h1, Emacs briefly highlights the slash in br/.
> (Other close tags don't trigger any such This is incorrect, and is
> getting very annoying. What's going on, and how can I stop it?
It looks like a bug in sgml-slash-matching. Please M-x report-emacs-bug.
You can disable it with
(add-hook 'sgml-mode-hook (lambda () (local-set-key "/" nil)))
tho you may actually prefer to use `nxml-mode' for HTML files.
E.g. with
(defalias 'html-mode 'nxml-mode)
-- Stefan