[Top][All Lists]

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

Re: How can I avoid mapping of § by sgml-mode.el?

From: Eric Abrahamsen
Subject: Re: How can I avoid mapping of § by sgml-mode.el?
Date: Tue, 12 Nov 2013 08:57:07 +0800
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)

Guido Van Hoecke <> writes:

> Fellow Emacs users,
> I use and abuse a private keymap using the § key as prefix-command. It
> is conveniently located under the ESC key on my iMac keyboard,
> and not used by me for any other purpose. This works fine in all
> modes except in sgml mode. There the key is bound to
> sgml-maybe-name-self:
>     § runs the command sgml-maybe-name-self, which is an interactive
>     compiled Lisp function in `sgml-mode.el'.
> I have looked into sgml-mode.el but my lisp does not suffice to
> find a way to avoid this mapping.
> Can some more knowledgeable person give me a recipe to avoid this
> mapping by sgml-mode?

You can shut the whole thing off by calling the function
(sgml-name-8bit-mode), or setting the variable of the same name to 'nil.
That will prevent automatic conversion of any characters, however, which
may not be what you want. You could zap that particular character only

(aset sgml-char-names 167 nil)

Hope that helps,

reply via email to

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