I have configured Emacs to open certain file types with external viewers:
(progn
(require 'openwith)
(openwith-mode t)
(setq openwith-associations '(("\\.pdf\\'" "evince" (file))))
(setq openwith-associations '(("\\.jpg\\'" "eog" (file))))
(setq openwith-associations '(("\\.png\\'" "eog" (file))))
)
While eog file types are indeed opened with the eog program, when I navigate to a PDF file (with C-x C-f) this is what I see:
In contrast, when I navigate to png files they are opened in an external eog viewer as intended.
