[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How can I avoid mapping of § by sgml-mode.el?
From: |
Guido Van Hoecke |
Subject: |
Re: How can I avoid mapping of § by sgml-mode.el? |
Date: |
Tue, 12 Nov 2013 08:46:00 +0100 |
Thanks Kevin!
Works like a charm :)
On 12 November 2013 06:32, Kevin Rodgers <kevin.d.rodgers@gmail.com> wrote:
> 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
>
>