summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-05-12 13:28:13 -0400
committerAmin Bandali <bandali@gnu.org>2019-05-12 13:28:13 -0400
commit06ee5a0033010d8ebac2a50dcb9eb1e666879c7b (patch)
treea7e89c2b6b162ea3c59a239ee2a9d7ee82c2af79
parent082360a8460ea8162f1c3d14fde55f732c5d7ec2 (diff)
downloadconfigs-06ee5a0033010d8ebac2a50dcb9eb1e666879c7b.tar.gz
configs-06ee5a0033010d8ebac2a50dcb9eb1e666879c7b.tar.xz
configs-06ee5a0033010d8ebac2a50dcb9eb1e666879c7b.zip
emacs: add dired-x and set dired-guess-shell-alist-user
Diffstat (limited to '')
-rw-r--r--.emacs.d/init.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 212ae16..6d8d086 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -862,6 +862,17 @@ For disabling the behaviour for certain buffers and/or modes."
(setq ediff-after-quit-hook-internal nil)
(set-window-configuration wnd))))
(error "no more than 2 files should be marked"))))
+
+ (require 'dired-x)
+ (setq dired-guess-shell-alist-user
+ '(("\\.pdf\\'" "evince" "zathura" "okular")
+ ("\\.doc\\'" "libreoffice")
+ ("\\.docx\\'" "libreoffice")
+ ("\\.ppt\\'" "libreoffice")
+ ("\\.pptx\\'" "libreoffice")
+ ("\\.xls\\'" "libreoffice")
+ ("\\.xlsx\\'" "libreoffice")
+ ("\\.flac\\'" "mpv")))
:bind (:map dired-mode-map
("b" . dired-up-directory)
("e" . dired-ediff-files)