   :demand t
   :general
   (:keymaps 'insert
-            "C-g" 'normal-state-or-keyboard-quit)
+            "C-g" 'evil-normal-state)
   :custom
   (evil-want-Y-yank-to-eol t)
   :init

  (when evil-pre-insert-state-variable-pitch-mode
    (variable-pitch-mode 1)))

(defun normal-state-or-keyboard-quit ()
  "If in evil insert state, force normal state, else run `keyboard-quit'."
  (interactive)
  (if (and evil-mode (eq evil-state 'insert))
      (evil-force-normal-state)
    (keyboard-quit)))

(provide 'feature-evil)
;;; feature-evil.el ends here

;;; evil.el --- Extensible vi layer -*- lexical-binding: t; -*-

;;; Commentary:
;; The way of the vi!
