Skip to content

Instantly share code, notes, and snippets.

@ruediger
Last active December 17, 2015 05:58
Show Gist options
  • Save ruediger/5561308 to your computer and use it in GitHub Desktop.
Save ruediger/5561308 to your computer and use it in GitHub Desktop.
(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