From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Deny keymap changes made by `evil-integration' Date: Sat, 25 Jul 2015 14:47:38 +0300 Message-ID: <83lhe41msl.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1437824888 29247 80.91.229.3 (25 Jul 2015 11:48:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jul 2015 11:48:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 25 13:48:00 2015 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 1ZIxvq-00044o-7g for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jul 2015 13:47:58 +0200 Original-Received: from localhost ([::1]:47738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIxvp-00030b-Bt for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jul 2015 07:47:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIxvg-00030R-5r for help-gnu-emacs@gnu.org; Sat, 25 Jul 2015 07:47:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIxvb-0005NG-2n for help-gnu-emacs@gnu.org; Sat, 25 Jul 2015 07:47:48 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:41044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIxva-0005N6-Qk for help-gnu-emacs@gnu.org; Sat, 25 Jul 2015 07:47:43 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NS100E00KJVC300@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Sat, 25 Jul 2015 14:47:36 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NS100EQXKRC9F50@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Sat, 25 Jul 2015 14:47:36 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:105982 Archived-At: > Date: Sat, 25 Jul 2015 13:43:09 +0200 > From: Alexander Shukaev > > `evil-integration' has quite some forms like > > (eval-after-load 'dired > '(progn > ;; use the standard Dired bindings as a base > (defvar dired-mode-map) > (evil-make-overriding-map dired-mode-map 'normal) > (evil-add-hjkl-bindings dired-mode-map 'normal > "J" 'dired-goto-file ; "j" > "K" 'dired-do-kill-lines ; "k" > "r" 'dired-do-redisplay ; "l" > ;; ":d", ":v", ":s", ":e" > ";" (lookup-key dired-mode-map ":")))) > > for various packages. I would like to learn how to either revert > these changes back to the default state (i.e. `dired-mode-map' should > be crystal clean as it was before loading `evil') or, even better, > prevent `evil-integration' from doing such changes. For instance, > I've tried > > (let ((dired-mode-map)) > (require 'evil) > ... > ) > > and it didn't work. Any ideas? Would reloading Dired be OK?