diff --git a/layers/auto-completion/packages.el b/layers/auto-completion/packages.el index 72c8fa4f9..b274356a6 100644 --- a/layers/auto-completion/packages.el +++ b/layers/auto-completion/packages.el @@ -168,7 +168,8 @@ (defun auto-completion/init-hippie-exp () ;; replace dabbrev-expand (global-set-key (kbd "M-/") 'hippie-expand) - (define-key evil-insert-state-map (kbd "C-p") 'hippie-expand) + (when (eq dotspacemacs-editing-style 'vim) + (define-key evil-insert-state-map (kbd "C-p") 'hippie-expand)) (setq hippie-expand-try-functions-list '( ;; Try to expand word "dynamically", searching the current buffer.