 (use-package hydra :ensure t)
 (setq hydra-is-helpful t)
 
+(defhydra hydra-goto-line (:pre (progn
+                                  (global-git-gutter-mode -1)
+                                  (linum-mode 1))
+                           :post (progn
+                                   (linum-mode -1)
+                                   (global-git-gutter-mode +1))
+                           :color blue)
+  "goto"
+  ("g" goto-line "line")
+  ("c" goto-char "char")
+  ("q" nil "quit"))
+(global-set-key (kbd "M-g") #'hydra-goto-line/body)
+
 (defhydra hydra-org-add-object (:color blue)
   "add"
   ("c" ar/org-add-cl "cl")

  (flyspell-prog-mode)
  (whitespace-mode)
  (rainbow-delimiters-mode)
  (linum-mode)
  (centered-cursor-mode)
  ;; Language-aware editing commands. Useful for imenu-menu.
  (semantic-mode 1)

   ("a" ar/find-all-dired-current-dir "find all files")
   ("q" nil "quit")))

(defhydra hydra-git-gutter (:pre (git-gutter-mode 1))
  "
Git: _n_ext     _s_tage  _d_iff
     _p_revious _r_evert _q_uit
"
  ("n" git-gutter:next-hunk nil)
  ("p" git-gutter:previous-hunk nil)
  ("s" git-gutter:stage-hunk nil)
  ("r" git-gutter:revert-hunk nil)
  ("d" git-gutter:popup-hunk nil)
  ("q" nil nil :color blue))
(global-set-key (kbd "C-c g") #'hydra-git-gutter/body)

(defhydra hydra-magit-commit (:color blue)
  "magit commit"
