 
 (defun ar/hydra-open-dwim ()
   "Choose \"open\" hydra based on current mode."
+  (interactive)
   (cond ((derived-mode-p 'c-mode) (hydra-open-c-mode/body))
         ((derived-mode-p 'prog-mode) (hydra-open-prog-mode/body))
         (t (hydra-open/body))))
+
+(bind-key "C-c o" #'ar/hydra-open-dwim)
 
 (defhydra hydra-search (:color blue)
   "search"

  ("u" ar/helm-buffer-urls nil)
  ("q" nil "cancel"))

(bind-key "C-c o" #'hydra-open/body)

(defhydra hydra-open-prog-mode (:color blue)
  "open"
  ("o" ff-find-other-file "other")

  ("o" ff-find-other-file "other")
  ("e" ar/platform-open-in-external-app "externally")
  ("u" ar/open-file-at-point "url at point")
  ("b" ar/file-open-build-file "build file")
  ("q" nil "cancel"))

(defhydra hydra-open (:color blue)
  "
