emacs-lisp: don't use custom-set-variables

As it make evil to error when the delq form is written the customize file,
instead we call the set method manually and it works fine.

Would be better and more future proof to curry the set function into a named
function of 0 arity for evil-intercept-maps custom setting.
This commit is contained in:
syl20bnr 2017-02-12 22:59:26 -05:00
parent 76b0d3c48a
commit 3da2f3702e

View file

@ -75,10 +75,13 @@
"dF" 'spacemacs/edebug-instrument-defun-off))
;; since we evilify `edebug-mode-map' we don't need to intercept it to
;; make it work with evil
(custom-set-variables
'(evil-intercept-maps
(delq (assq 'edebug-mode-map evil-intercept-maps)
evil-intercept-maps)))
(evil-set-custom-state-maps
'evil-intercept-maps
'evil-pending-intercept-maps
'intercept-state
'evil-make-intercept-map
(delq (assq 'edebug-mode-map evil-intercept-maps)
evil-intercept-maps))
(evilified-state-evilify-map edebug-mode-map
:eval-after-load edebug
:bindings