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

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

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


From: Kevin Rodgers
Subject: Re: How can I avoid mapping of § by sgml-mode.el?
Date: Mon, 11 Nov 2013 22:32:07 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20

On 11/11/13 8:04 AM, Guido Van Hoecke wrote:
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?

(add-hook 'sgml-mode-hook
          (lambda () (local-unset-key "§")))

--
Kevin Rodgers
Denver, Colorado, USA




reply via email to

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