[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?
- Deny keymap changes made by `evil-integration', Alexander Shukaev, 2015/07/25
- Re: Deny keymap changes made by `evil-integration', Eli Zaretskii, 2015/07/25
- Re: Deny keymap changes made by `evil-integration', Alexander Shukaev, 2015/07/25
- Re: Deny keymap changes made by `evil-integration', Eli Zaretskii, 2015/07/25
- Re: Deny keymap changes made by `evil-integration', Alexander Shukaev, 2015/07/25
- Re: Deny keymap changes made by `evil-integration', Eli Zaretskii, 2015/07/25
- Re: Deny keymap changes made by `evil-integration', Alexander Shukaev, 2015/07/25
- Re: Deny keymap changes made by `evil-integration', John Mastro, 2015/07/27
- Re: Deny keymap changes made by `evil-integration',
Alexander Shukaev <=
- Re: Deny keymap changes made by `evil-integration', Martin Yrjölä, 2015/07/26
- Re: Deny keymap changes made by `evil-integration', Alexander Shukaev, 2015/07/26
Re: Deny keymap changes made by `evil-integration', Robert Thorpe, 2015/07/27