   (global-company-mode))
 (use-package magit
   :bind ("C-x g" . magit-status)
-  :ensure t)
+  :ensure t
+  :config
+  (add-hook 'magit-status-mode-hook 'magit-keys)
+  (add-hook 'magit-log-mode-hook 'magit-keys)
+  (add-hook 'magit-diff-mode-hook 'magit-keys)
+  (add-hook 'magit-staged-section-mode-hook 'magit-keys)
+  )
 
 (load-file "~/.emacs.d/custom-functions.el") ;; Loads my custom-functions
 

  (defengine wikipedia
    "http://www.wikipedia.org/search-redirect.php?language=en&go=Go&search=%s"
    :keybinding "w")
  )
;;-----------------------------------Engine-mode-----------------------


(use-package evil
  :ensure t
  :config
  (evil-mode 1)
  (evil-ex-define-cmd "do[ne-archive]" 'my-org-archive-done-tasks)
  :bind
  ("M-C-j" . move-line-down)
  ("M-C-k" . move-line-up)
  ("C-x C-m" . move-file)
  :map evil-normal-state-map
  ("n" . scroll-up)
  ("N" . scroll-down)
  ("C-h" . evil-window-left)
  ("C-h" . evil-window-left)
  ("C-j" . evil-window-down)
  ("C-k" . evil-window-up)
  ("C-l" . evil-window-right)
  ("z" . org-open-at-point)
  ("Z" . org-insert-link)
  :map evil-visual-state-map
  ("L" . end-of-line)
  ("H" . beginning-of-line)
  )
(use-package company
  :ensure t
  :diminish company-mode
