   (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

  (use-package helm-config)

  (use-package helm-eshell
    :after helm-files
    :config
    (defun helm-eshell-mode-hook-func ()
      (bind-key "M-r" #'helm-eshell-history eshell-mode-map))

    (add-hook #'eshell-mode-hook #'helm-eshell-mode-hook-func))

  (defun ar/helm-keyboard-quit-dwim (&optional arg)
    "First time clear miniuffer. Quit thereafter."

       (t
        (call-interactively #'ediff-buffers))))))

(use-package whitespace
  ;; Automatically remove whitespace on saving.
  :hook ((before-save . whitespace-cleanup)
         (prog-mode . whitespace-mode))
  :config
  ;; When nil, fill-column is used instead.
  (validate-setq whitespace-line-column nil)
