 
 ;; Copyright (C) 2014-2015 syl20bnr
 ;;
-;; Author: Sylvain Benner <sylvain.benner@gmail.com>
+;; Author: Justin Burkett <justin@burkett.cc>
 ;; Keywords: convenience editing
 ;; Created: 12 Aug 2015
 ;; Version: 1.00

;;; Commentary:

;;; Code:

(defvar hybrid-mode-insert-state-map-backup nil
  "Backup of `evil-insert-state-map'.")

                                       (cadr evil-insert-state-cursor)))
  (copy-face 'spacemacs-insert-face 'hybrid-mode-insert-face-backup)
  (copy-face 'spacemacs-emacs-face 'spacemacs-insert-face)
  ;; (setcdr evil-insert-state-map nil)
  ;; (define-key evil-insert-state-map [escape] 'evil-normal-state)
  (dolist (key hybrid-mode-evil-insert-state-keys)
    (define-key evil-insert-state-map key nil))
  (define-key evil-insert-state-map
    (read-kbd-macro evil-toggle-key) nil)
  ;; see if the above works withou this
  ;; (when (bound-and-true-p evil-escape-mode)
  ;;   (define-key evil-insert-state-map "f" 'evil-escape-insert-state))
  )

(defun hybrid-mode-restore-keymaps ()
  "Go home."
  (setq evil-insert-state-map hybrid-mode-insert-state-map-backup
        evil-insert-state-cursor hybrid-mode-insert-state-cursor-backup)
  (copy-face 'hybrid-mode-insert-face-backup 'spacemacs-insert-face))
