adding tweaks to xdg-open
This commit is contained in:
parent
e193044fa3
commit
15b160fd6d
|
@ -3148,7 +3148,7 @@ I'm making a small function in here to open files in the appropriate program usi
|
||||||
"Open the file-at-point in the appropriate program"
|
"Open the file-at-point in the appropriate program"
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((file (file-truename (ignore-errors (dired-get-file-for-visit)))))
|
(let ((file (file-truename (ignore-errors (dired-get-file-for-visit)))))
|
||||||
(message file)
|
(message (concat "Opening ==> " file))
|
||||||
(call-process "xdg-open" nil 0 nil file)))
|
(call-process "xdg-open" nil 0 nil file)))
|
||||||
|
|
||||||
(defun chris/dired-open-wm ()
|
(defun chris/dired-open-wm ()
|
||||||
|
|
2
init.el
2
init.el
|
@ -2288,7 +2288,7 @@ targets."
|
||||||
"Open the file-at-point in the appropriate program"
|
"Open the file-at-point in the appropriate program"
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((file (file-truename (ignore-errors (dired-get-file-for-visit)))))
|
(let ((file (file-truename (ignore-errors (dired-get-file-for-visit)))))
|
||||||
(message file)
|
(message (concat "Opening ==> " file))
|
||||||
(call-process "xdg-open" nil 0 nil file)))
|
(call-process "xdg-open" nil 0 nil file)))
|
||||||
|
|
||||||
(defun chris/dired-open-wm ()
|
(defun chris/dired-open-wm ()
|
||||||
|
|
Loading…
Reference in a new issue