 	(global-unset-key (kbd "<f4>"))
   :config
   (general-evil-setup t)
+  (general-override-mode)
   (general-define-key
    :prefix "<f4>"
     "g"     #'general-describe-keybindings)

    ("<f9> l"     #'magit-log-current)
    ("<f9> r"     #'magit-list-repositories)
    ("<f9> <f9>"  #'magit-status)
  :config
  (use-package evil-magit
    :demand
    :init
    (setq evil-magit-state 'normal)
    :config))

;; Cowboy override of git-timemachine-mode-map
;; Timemachine's map has a number of bindings which

  (evil-set-initial-state 'deft-mode 'insert)

  ;; these modes are better in emacs state
  (dolist (mode
           '(dired-mode
             finder-mode
             image-dired-thumbnail-mode
             paradox-menu-mode))
    (add-to-list 'evil-emacs-state-modes mode))

  (evil-mode 1))

(use-package evil-collection
  :after evil
  :defines evil-collection-company-use-tng
  :init
  (setq evil-collection-company-use-tng t)
  :defer 1
  :config
  (evil-collection-init))

(use-package ws-butler
  :hook (( prog-mode text-mode ) . ws-butler-mode )
