help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deny keymap changes made by `evil-integration'


From: Alexander Shukaev
Subject: Re: Deny keymap changes made by `evil-integration'
Date: Tue, 28 Jul 2015 15:28:32 +0200

> You can use Eli's suggestions to put together something like the below
> that's fairly clean/simple and avoids all the repetition of spelling it
> out for each mode.
>
> You may have already done this but throwing it out there just in case.
>
>     (defun defeat-evil (modes)
>       (eval-after-load 'evil
>         `(progn
>            ,@(mapcar (lambda (mode)
>                        `(eval-after-load ',mode
>                           (let (after-load-alist)
>                             (load ,(symbol-name mode)))))
>                      modes))))
>
>     (defeat-evil '(dired whatever))
>
> --
> john
>

Thanks, John, handy macro indeed.  One question though, why did you
decide to make it a macro rather than function?  Any advantages in
this case?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]