   (put 'dired-find-alternate-file 'disabled nil)
   ;; Automatically refresh dired buffers when contents changes.
   (validate-setq dired-auto-revert-buffer t)
-  (add-hook 'dired-mode-hook 'discover-mode)
-  ;; Hide dired details by default.
-  (add-hook 'dired-mode-hook 'dired-hide-details-mode)
   :bind (:map global-map
               ("C-l". dired-jump))
   :bind (:map dired-mode-map

        (backward-char))
      (sp-wrap-with-pair "["))
    (insert " "))

  (define-key smartparens-mode-map (kbd "M-]") #'ar/smartparens-wrap-square-bracket)

  ;; Add to minibuffer also.
  (add-hook 'minibuffer-setup-hook 'smartparens-mode)

  :bind
  (:map smartparens-strict-mode-map
        ("C-c <right>" . sp-forward-slurp-sexp)

  (dired-mark-files-regexp ""))

(use-package dired
  :hook (dired-mode . dired-hide-details-mode)
  :commands dired-mode
  :config
  ;; For dired-jump.
