-
Notifications
You must be signed in to change notification settings - Fork 8
Open files with external programs
garberw/openwith
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Openwith is a simple but very useful package to make Emacs associate various file types with external applications. For example, Emacs can open PDFs, but you may want to open them with a dedicated PDF viewer instead. With openwith, you can do this seamlessly when you use C-x C-f. It also works with recentf and ido. Here's an example configuration for your init.el: (when (require 'openwith nil 'noerror) (setq openwith-associations (list (list (openwith-make-extension-regexp '("mpg" "mpeg" "mp3" "mp4" "avi" "wmv" "wav" "mov" "flv" "ogm" "ogg" "mkv")) "vlc" '(file)) (list (openwith-make-extension-regexp '("xbm" "pbm" "pgm" "ppm" "pnm" "png" "gif" "bmp" "tif" "jpeg" "jpg")) "geeqie" '(file)) (list (openwith-make-extension-regexp '("doc" "xls" "ppt" "odt" "ods" "odg" "odp")) "libreoffice" '(file)) '("\\.lyx" "lyx" (file)) '("\\.chm" "kchmviewer" (file)) (list (openwith-make-extension-regexp '("pdf" "ps" "ps.gz" "dvi")) "okular" '(file)) )) (openwith-mode 1)) See also http://www.emacswiki.org/emacs/OpenWith.
About
Open files with external programs
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published