Add openwith.
This commit is contained in:
@@ -32,6 +32,10 @@
|
|||||||
|
|
||||||
;; Orthodox file browser
|
;; Orthodox file browser
|
||||||
(use-package sunrise-commander)
|
(use-package sunrise-commander)
|
||||||
|
;; open files in external applications
|
||||||
|
(use-package openwith
|
||||||
|
:config
|
||||||
|
(load "~/.emacs.d/elisp/openwith-setup.el"))
|
||||||
|
|
||||||
;; Programming environment
|
;; Programming environment
|
||||||
;; git
|
;; git
|
||||||
|
|||||||
24
elisp/openwith-setup.el
Normal file
24
elisp/openwith-setup.el
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
(require 'openwith)
|
||||||
|
(setq openwith-associations
|
||||||
|
(list
|
||||||
|
(list (openwith-make-extension-regexp
|
||||||
|
'("mpg" "mpeg" "mp3" "mp4"
|
||||||
|
"avi" "wmv" "wav" "mov" "flv"
|
||||||
|
"ogm" "ogg" "mkv"))
|
||||||
|
"mpv"
|
||||||
|
'(file))
|
||||||
|
(list (openwith-make-extension-regexp
|
||||||
|
'("xbm" "pbm" "pgm" "ppm" "pnm"
|
||||||
|
"png" "gif" "bmp" "tif" "jpeg" "jpg"))
|
||||||
|
"viewnior"
|
||||||
|
'(file))
|
||||||
|
(list (openwith-make-extension-regexp
|
||||||
|
'("doc" "xls" "ppt" "odt" "ods" "odg" "odp"))
|
||||||
|
"libreoffice"
|
||||||
|
'(file))
|
||||||
|
(list (openwith-make-extension-regexp
|
||||||
|
'("pdf" "ps" "ps.gz" "dvi"))
|
||||||
|
"mupdf"
|
||||||
|
'(file))
|
||||||
|
))
|
||||||
|
(openwith-mode 1)
|
||||||
Reference in New Issue
Block a user