index rss mastodon twitter github linkedin email
Álvaro Ramírez
sponsor

Álvaro Ramírez

23 May 2018 Train Emacs to open files externally

TIL about the openwith package. It enables Emacs to defer to external programs for certain files. You choose which ones. Neat.

(use-package openwith :ensure t
  :config
  (csetq openwith-associations
         '(("\\.\\(mp4\\|mp3\\|webm\\|avi\\|flv\\|mov\\)$" "open" (file))))
  (openwith-mode 1))