Quickly preview images and other files with peep-dired

The package peep-dired lets you quickly scan through images (or any other documents) with previews in dired. In the example below, I invoke peep-dired (I bind it to P) and scan through a set of images in a dired listing. When I am finished I hit P again to quit peep-dired.


Here is my code to install and configure peep-dired with use-package

;;preview files in dired
(use-package peep-dired
  :ensure t
  :defer t ; don't access `dired-mode-map' until `peep-dired' is loaded
  :bind (:map dired-mode-map
              ("P" . peep-dired)))
  • Rodrigo Amestica

    any known way to scale preview’s size down to a nice fit for the peeping buffer’s area?

  • Mike F

    How can the window split (triggered by peep-dired-mode) be changed from horizontal to vertical?

    I tried (unsuccessfully) a couple variations of these variables, based on a SO question about splitting windows vertically. Using Emacs 24.3

    (setq split-height-threshold nil)
    (setq split-width-threshold 160)

    • I can’t see a way to do that in the code, but I see you’ve raised an issue on the github page so hopefully you’ll get some help there.

  • Pingback: 2016-03-14 Emacs News - sacha chua :: living an awesome life()