From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Shukaev Newsgroups: gmane.emacs.help Subject: Re: Deny keymap changes made by `evil-integration' Date: Sat, 25 Jul 2015 13:58:45 +0200 Message-ID: References: <83lhe41msl.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1437825545 6659 80.91.229.3 (25 Jul 2015 11:59:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jul 2015 11:59:05 +0000 (UTC) Cc: help-gnu-emacs To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 25 13:59:02 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 1ZIy6W-0006VB-4v for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jul 2015 13:59:00 +0200 Original-Received: from localhost ([::1]:47749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIy6V-0005Kg-AS for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jul 2015 07:58:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIy6L-0005KX-5T for help-gnu-emacs@gnu.org; Sat, 25 Jul 2015 07:58:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZIy6K-0000pg-A8 for help-gnu-emacs@gnu.org; Sat, 25 Jul 2015 07:58:49 -0400 Original-Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:35558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZIy6I-0000pP-M2; Sat, 25 Jul 2015 07:58:46 -0400 Original-Received: by lblf12 with SMTP id f12so28867963lbl.2; Sat, 25 Jul 2015 04:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=qLtwlsmOCIBBk7/AgKwv22lDREa4id7APhOf0nrN8Q4=; b=HDKZntKFGcrfy4dm66nT+3uoNbg5EUucci0pAowpHxIZbi7HmLY2PNR31cgN7lZwrR otnfgAz9QsmzeTLAzcC05VMULB4zoRjb3k3mDjt4SuS9IkzqEcI+vEeUQAzIjnsOOG9Z 5sjOCog3/Xl7kWpl8wGvLqoQwO+pqMgHgk/MFMdQ0Dy3FJJxdilIU5ojkL7SgNdVDatU OwaM3yhN9swBtCnlknjAbD/3ZcEcvaocJcYfHxWaOWCNgS1QhxmYd8hji9Erke64J6yk 0K2K6OeIwKfyVSll+Pr5lNOyMw0TjhGREtTbHxTGRY57uu1J+DTERaSC+HOSMEBK5PdO dZxw== X-Received: by 10.112.171.68 with SMTP id as4mr18240861lbc.64.1437825525514; Sat, 25 Jul 2015 04:58:45 -0700 (PDT) Original-Received: by 10.112.148.33 with HTTP; Sat, 25 Jul 2015 04:58:45 -0700 (PDT) In-Reply-To: <83lhe41msl.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::230 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:105983 Archived-At: >> `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? > That's an idea, Eli, but does that mean that I have to spam something like (with-eval-after-load 'evil (with-evail-after-load 'dired (unload-feature 'dired) (require 'dired)) (with-evail-after-load 'whatever (unload-feature 'whatever) (require 'whatever)) ...) for every package that is modified by `evil-integration'?