From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: view-mode keymap Date: Thu, 03 Jan 2013 21:10:02 +0800 Message-ID: <87bod6fm51.fsf@ericabrahamsen.net> References: <87sj6mi7p5.fsf@casa.home> <87sj6j8y1q.fsf@casa.home> <87y5gafrnt.fsf@casa.home> <87sj6ifoek.fsf@casa.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1357218356 14316 80.91.229.3 (3 Jan 2013 13:05:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 3 Jan 2013 13:05:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 03 14:06:11 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TqkUs-0005X4-28 for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Jan 2013 14:06:10 +0100 Original-Received: from localhost ([::1]:49830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqkUc-000285-TY for geh-help-gnu-emacs@m.gmane.org; Thu, 03 Jan 2013 08:05:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60495) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqkUV-00027j-4i for help-gnu-emacs@gnu.org; Thu, 03 Jan 2013 08:05:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TqkUO-0001aF-Pf for help-gnu-emacs@gnu.org; Thu, 03 Jan 2013 08:05:47 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:47888) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TqkUO-0001a8-K9 for help-gnu-emacs@gnu.org; Thu, 03 Jan 2013 08:05:40 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TqkUa-0005NA-DP for help-gnu-emacs@gnu.org; Thu, 03 Jan 2013 14:05:52 +0100 Original-Received: from 183.89.1.238 ([183.89.1.238]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jan 2013 14:05:52 +0100 Original-Received: from eric by 183.89.1.238 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 03 Jan 2013 14:05:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 183.89.1.238 User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:GNbykKPD7oWdYjtKM+ICsXwfbEM= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88404 Archived-At: Daimrod writes: > So now my code is: > > (add-hook 'view-mode-hook > (lambda () > ;; In `view-mode', `view-mode-map' overrides other minor > ;; mode maps. > (pushnew (cons 'view-mode view-mode-map) > minor-mode-overriding-map-alist > :key #'car))) > > A bit more cleaner :) Thanks! This was annoying me too, but not enough to look into it. I'll try the fix...