 
 (use-package dired
   :bind (("C-x C-d" . dired)
-         ("C-x d" . j/dired-open-here))
-  :config
-  (bind-keys :map dired-mode-map ("r" . j/dired-open-external))
+         ("C-x d" . j/dired-open-here)
+         :map dired-mode-map
+         ("r" . j/dired-open-external))
+  :config
   ;; Set the name of the host and current path/file in title bar:
   (setq frame-title-format
         (list (format "%s %%S: %%j " (system-name))

  :diminish projectile-mode
  :commands projectile-mode
  :bind-keymap ("C-c p" . projectile-command-map)
  :config
  (setq projectile-mode-line "")
  (projectile-global-mode))

(use-package python
  :mode ("\\.py\\'" . python-mode)
  :interpreter ("python" . python-mode)
  :config
  (bind-keys :map python-mode-map
             ("C-c d" . j/python-insert-debugger)
             ("M-n" . python-nav-forward-defun)
             ("M-p" . python-nav-backward-defun))
  (setq-default python-fill-docstring-style 'pep-257-nn)
  (add-hook 'python-mode-hook
            (lambda ()
              (setq mode-name "Py")))
  (defun j/python-insert-debugger ()
    "Insert a debugger statement at point"
    (interactive)

    (setq ido-use-faces nil))

  (use-package ido-vertical-mode
    :bind (:map bookmark-map ("b" . ido-bookmark-jump))
    :config
    (ido-vertical-mode 1)
    (setq ido-vertical-define-keys 'C-n-C-p-up-and-down)
    (defun ido-bookmark-jump ()
      "*Switch to bookmark interactively using `ido'."
