   ("g" goto-line "line")
   ("c" goto-char "char")
   ("q" nil "quit"))
-(global-set-key (kbd "M-g")
-                #'hydra-goto-line/body)
+(bind-key "M-g" #'hydra-goto-line/body)
 
 (defhydra hydra-org-add-object (:color blue)
   "add"

      (move-end-of-line nil)
      (newline-and-indent))))

(global-set-key (kbd "C-o")
                #'ar/smart-open-line)

(use-package ace-jump-mode :ensure t)


;; Duplicate line.
(global-set-key "\C-x\C-d" "\C-a\C- \C-e\M-w\C-j\C-y")

(bind-key "C-q" #'previous-buffer)
(bind-key "C-z" #'next-buffer)

;; Save current position to mark ring when jumping to a different place
(add-hook 'helm-goto-line-before-hook 'helm-save-current-pos-to-mark-ring)
