Last active
December 17, 2015 05:58
-
-
Save ruediger/5561308 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun browse-in-open-browser (&rest args) | |
(apply | |
(or (cl-dolist (process (proced-process-attributes)) | |
(let* ((process-data (cdr process)) | |
(comm (cdr (assq 'comm process-data)))) | |
(when (string= (cdr (assq 'user process-data)) user-login-name) | |
(cond | |
((string= comm "firefox") | |
(cl-return #'browse-url-firefox)))))) | |
#'browse-url-default-browser) | |
args)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment