From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Kamphausen Newsgroups: gmane.emacs.help Subject: Best practice for overriding keybinding of a minor mode? Date: Fri, 25 Sep 2009 09:57:51 +0200 Organization: Church of Emacs Message-ID: <87bpkz78xs.fsf@usenet.my.skamphausen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253868072 24210 80.91.229.12 (25 Sep 2009 08:41:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2009 08:41:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 25 10:41:05 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mr6MS-0007rb-Ss for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2009 10:41:05 +0200 Original-Received: from localhost ([127.0.0.1]:45871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mr6MS-0006Ig-3d for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2009 04:41:04 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin2!goblin.stu.neva.ru!feeder.erje.net!news.musoftware.de!wum.musoftware.de!news.albasani.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-X-Trace: news.albasani.net 53eJE5SyBiqRc0C3Cu8eBY1B8mpElKVEgvnTRslvm3w4swWFmy1k3ro6XkQLR5NZPqa2gObtVMryVQC5fdmIG9bmJIiq/Eg66Tj1NUg5kqbWpXIE5/gaGxWR6AZs7nx8 Original-X-Complaints-To: abuse@albasani.net Original-NNTP-Posting-Date: Fri, 25 Sep 2009 07:57:51 +0000 (UTC) X-User-ID: Nv7PDw7mpImpRDhKTshz3ee8eeflHgYG7/+SEWT9Ioo= Cancel-Lock: sha1:fqbrPWZOyDotJSDt57JHd9gb9NM= sha1:5Nbb3aFXUrO0gus151nyxKJpC4g= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-NNTP-Posting-Host: kpQhW5jWZ7bX0n1FVeKFlhZ+UYgem5akgTGz9H04h5M= Original-Xref: news.stanford.edu gnu.emacs.help:173340 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68460 Archived-At: Dear all, whenever you use a minor mode it may come with its own set of keybinding. Just as an example take the keymap of the fine flyspell-mode. It binds C-. and C-, which I find particularly annoying since I got those bound to some personal functions globally for years. Now, my question is: what is the best/most effective/easiest/suggested way to remove those bindings? Shall I re-create that keymap after loading flyspell? Or override those binding explicitly in all hooks where I enable flyspell (mainly nxml and message-mode, that is)? How would you do this? Kind regards, Stefan -- Stefan Kamphausen --- http://www.skamphausen.de a blessed +42 regexp of confusion (weapon in hand) You hit. The format string crumbles and turns to dust.